Refactor DOOM init & add new init hooks

+ Add doom-init-hook and doom-post-init-hook to simplify Emacs init
  hooks into less ambiguous ones.
+ Attach former after-init-hook and emacs-startup-hook hooks to new doom
  init hooks.
+ Vastly improves daemon and tty support: preventing incorrect colors
  from bleeding across face class barriers, and into GUI Emacs and vice
  versa, when spawned with emacsclient.
+ Fix persp-mode breaking Emacs daemon, and ensuring that initialization
  is done properly in terminal Emacs (and emacsclient frames).
This commit is contained in:
Henrik Lissner
2017-06-12 00:20:30 +02:00
parent d3054f4679
commit 4984a548d1
17 changed files with 121 additions and 80 deletions

View File

@ -21,7 +21,7 @@ state are passed in.")
'(".git" ".hg" ".svn" ".project" "package.json" "setup.py" "Gemfile"
"build.gradle"))
:config
:config
(add-hook 'doom-init-hook #'projectile-mode)
(setq projectile-other-file-alist