Refactor bootstrap process

This commit is contained in:
Henrik Lissner 2016-03-26 01:19:31 -04:00
parent b3feea7a4f
commit 89eeba1d97
6 changed files with 83 additions and 60 deletions

View file

@ -20,7 +20,7 @@
company-yasnippet
company-dabbrev-code)
company-dabbrev)
company-statistics-file (concat narf-temp-dir "company-stats-cache.el")
company-statistics-file (concat narf-temp-dir "/company-stats-cache.el")
company-quickhelp-delay nil)
:config

View file

@ -227,6 +227,15 @@ to abort the minibuffer."
;; (delete-windows-on "*Completions*"))
(abort-recursive-edit))))
(defun narf-reload ()
"Reload `load-path', in case you updated cask while emacs was open!"
(interactive)
(setq load-path (append (list narf-private-dir narf-core-dir narf-modules-dir narf-packages-dir)
(f-directories narf-core-dir nil t)
(f-directories narf-modules-dir nil t)
(f-directories narf-packages-dir)
narf--load-path)))
(after! evil
(evil-define-command narf:exit-mode-maybe ()
"Exits insert/replace mode using jk without the momentary pause caused by

View file

@ -42,6 +42,9 @@
(if (not window-system)
(menu-bar-mode -1)
(scroll-bar-mode -1) ; no scrollbar
(tool-bar-mode -1) ; no toolbar
;; Set fonts
(narf/load-font narf-default-font)
(set-face-attribute 'default t :font narf-default-font)

View file

@ -84,7 +84,7 @@
(require 'dash)
(unless (require 'autoloads nil t)
(load (concat narf-emacs-dir "scripts/generate-autoloads.el"))
(load (concat narf-emacs-dir "/scripts/generate-autoloads.el"))
(require 'autoloads))
(require 'core-vars)
(require 'core-defuns)
@ -151,7 +151,7 @@
;;
;; Allow errors to stop this from happening
;; We put this on `after-init-hook' Allow errors to stop this from happening
(add-hook! after-init
(defadvice save-buffers-kill-emacs (around no-query-kill-emacs activate)
"Prevent annoying \"Active processes exist\" query when you quit Emacs."