These can be customized using (setq ...)
. For example:
(setq my-frame-maximize-p t)
(setq my-emacs-path "~/emacs-shared/")
;; customizations must be made before this line
(load-file (concat my-emacs-path "init/shared-init.el"))
Most of the settings are optional, except for my-emacs-path
.
my-default-font
: This will be a font name and size, for example:"Fira Code-17"
my-default-emoji-font
: This will be a font name, for example:"Noto Color Emoji"
my-default-emoji-size
: This will be a font size, for example:21
(it's recommended to be about 4 points higher than the normal font size on Linux, and same as the default font size for any other OS)my-modus-theme
: Which modus color theme to apply; set this tonil
if usingmy-theme
my-modus-theme-overrides
: Pallette overrides formodus-themes-common-palette-overrides
my-theme
: Which color theme to apply; set this tonil
if usingmy-modus-theme
my-use-themes-p
: Whether to use a color thememy-frame-maximize-p
: Whether to make the window fullscreen on startupmy-frame-pad-width
,my-frame-pad-height
: The width and height left over for the macOS Dockmy-frame-height
: If the window is not fullscreen, it will be resized to have this many rows on startupmy-frame-width
: If the window is not fullscreen, it will be resized to have this many columns on startup
my-default-directory
: After Emacs starts up, switch to this directorymy-emacs-path
: Location of your checkout of theemacs-shared
repomy-gptel-backend
: Thegptel
backend to use, as a symbol; examples are'my--gptel-claude
and'gptel--openai
. Make sure to set an appropriate value formy-gptel-model
as well.my-gptel-model
: Thegptel
model to use; if not specified, the first valid value for the backend will be used.my-remap-cmd-key-p
: Whether to remap the Command key on macOS (or Windows key on Linux) to be mostly a clone of Alt, with some exceptionsmy-settings-shared-p
: Whether to save customization settings into a personal file at~/.emacs.d/settings.el
or use the ones that come withemacs-shared
- a default is chosen based on whether that personal settings file is foundmy-server-start-p
: Whether to start a server process that can be reused in multiple editing sessionsmy-recent-files
: A list of files to open automatically in the background after starting Emacsmy-system-paths
: A list of directories to use when Emacs wants to find an executable program likegrep
- a large list of defaults is already provided based on OSmy-default-ripgrep-args
: A string containing arguments that are passed by default to ripgrep.
- M-x my-reset-font RET: Call this to manually reset the font after you've changed
my-default-font
- M-x my-reset-frame-size RET: Call this to manually reset the size of the window
- M-x my-reset-theme RET: Call this to manually reset the theme after you've changed
my-theme
- M-x my-fetch-url RET: Fetch the contents of a URL into a new buffer
(my-defer-startup func)
: Callfunc
shortly after Emacs has started - a good choice for moderately expensive tasks(with-cpu-profiling ...code)
: Profile a block of code to see which function calls within it are taking the longest