Set a user name and email address for Emacs to use if needed.
(setq user-full-name "James Koch"
user-mail-address "[email protected]")
Change the default directory that emacs opens in to fit your needs.
Define the default directory for which C=x C-f
starts the process of selecting a file to open with as well as defining a directory from which to load the org-agenda
.
(setq default-directory "/wind/jk/myLife/")
(setq org-directory "/wind/jk/myLife/")
Set the base directory containing the source and local publish files for my personal website.
(setq base-directory "/winc/jk/website/jckoch.gitlab.io/")
Only required under Windows. If on Linux set to a blank string as by default set here.
(setq git-executable "")
By default the following default theme using the modus
package is used to define the appearance of Emacs for this configuration.
If you prefer a different/alternative appearance to your Emacs setup or you use your own custom theme, you may override this by simpling enabling the COMMENT
TODO keyword on the sub-heading * Default Theme (use key binding C-c ;
) and disable either alternatives (* Alternative #1 or * Alternative #2) or add your own custom code.
First ensure that the non-standard (custom) themes which I use are installed so that they may be loaded in this configuration and activated as the current theme.
At the moment, I have switched to using the modus-vivendi
and modus-operandi
themes developed by Protesilaous Stavrou.
(use-package modus-themes
:ensure
:init
;; Add all your customizations prior to loading the themes
(setq modus-themes-slanted-constructs t
modus-themes-bold-constructs nil)
;; Set cursor type to a horizontal bar
(set-default 'cursor-type 'bar)
;; Main typeface
(set-face-attribute 'default nil :family "DejaVu Sans Mono" :height 120)
;; Proportionately spaced typeface
(set-face-attribute 'variable-pitch nil :family "DejaVu Serif" :height 1.0)
;; Monospaced typeface
(set-face-attribute 'fixed-pitch nil :family "DejaVu Sans Mono" :height 1.0)
;; Load the theme files before enabling a theme
(modus-themes-load-themes)
:config
;; Load the theme of your choice:
(modus-themes-load-vivendi) ;; for a dark theme OR (modus-themes-load-operendi) for a light theme
:bind ("<f5>" . modus-themes-toggle))
Regarding the typeface configuration it is taken directly from the dotemacs configuration of Protesilaous Stavrou:
Note the differences in the :height property. The default face must specify an absolute value, which is the point size × 10. So if you want to use a font at point size 11, you set the height to 110. Whereas every other face must have a value that is relative to the default, represented as a floating point (if you use an integer, then that means an absolute height). This is of paramount importance: it ensures that all fonts can scale gracefully when using something like the text-scale-adjust command which only operates on the base font size (i.e. the default face’s absolute height).