#+TITLE: Emacs Configuration #+AUTHOR: Camden Dixie O'Brien #+ATTR_LATEX: :float t Shout out to Harry R. Schwartz; A whole bunch of this config (including the idea of embeddeding the lot in an Org document) is yanked from [[https://github.com/hrs/dotfiles][his dotfiles repo]]. The rest of this config grabs packages via =use-package=, so that needs to be set up to install them if they aren't already. #+begin_src emacs-lisp (require 'use-package-ensure) (setq use-package-always-ensure t) #+end_src * UI The start-up message gets pretty annoying, so disable that. #+begin_src emacs-lisp (setq inhibit-startup-screen t) #+end_src The default window size is just a little too small for my taste. #+begin_src emacs-lisp (when window-system (set-frame-size (selected-frame) 90 48)) #+end_src And I like a little more line spacing than default. #+begin_src emacs-lisp (setq-default line-spacing 0.2) #+end_src Also, the menu-, tool- and scroll-bar are ugly, take up space and I don't use them. #+begin_src emacs-lisp (menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) #+end_src ** Colour Scheme Currently using =spacemacs-theme='s light variant, but I prefer a pure white background to the off-white it has by default. #+begin_src emacs-lisp (use-package spacemacs-theme :defer t) (setq spacemacs-theme-custom-colors '((bg1 . "#ffffff") (comment-bg . "#ffffff"))) (load-theme 'spacemacs-light t) #+end_src ** Font I am addicted to programming ligatures but Fira Code (my preferred ligature font) requires some hackery to display properly; this is defined in [[file:fira-code-mode/fira-code-mode.el][fira-code-mode.el]] so first we load that. #+begin_src emacs-lisp (add-to-list 'load-path "/home/cdo/.emacs.d/fira-code-mode") (require 'fira-code-mode) #+end_src And then make sure that mode is enabled for any =prog-mode= buffer. #+begin_src emacs-lisp (add-hook 'prog-mode-hook 'fira-code-mode) #+end_src * Org-mode I use a couple non-standard bits and pieces, but not a whole bunch. I really like the =