From bd7903815de06c85843a8ccd616ee99f883720e3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Dec 2019 13:35:03 +0000 Subject: feat(emacs.d): Load local Emacs configuration if present This allows me to have local Emacs configuration that is tracked separately from the rest. --- tools/emacs/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/emacs/init.el') diff --git a/tools/emacs/init.el b/tools/emacs/init.el index ea14955011..eb78461433 100644 --- a/tools/emacs/init.el +++ b/tools/emacs/init.el @@ -93,6 +93,8 @@ ;; Don't indent after '>' while I'm writing (local-set-key ">" 'self-insert-command))))) +(use-package f) + (use-package go-mode :bind (:map go-mode-map ("C-c C-r" . recompile) :map go-mode-map ("" . company-indent-or-complete-common)) @@ -151,6 +153,10 @@ (telephone-line-setup) (ace-window-display-mode)) +;; If a local configuration file exists, it should be loaded. +(let ((local-file (expand-file-name (f-join user-emacs-directory "local.el")))) + (when (f-exists? local-file) + (load local-file))) ;; Some packages can only be initialised after the rest of the ;; settings has been applied: -- cgit 1.4.1