Emacs: server with use-package

This commit is contained in:
Marcel Kapfer 2018-02-23 09:37:00 +01:00
parent 89e0ba9c7b
commit 077bc92c1f
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 11 additions and 1 deletions

View File

@ -219,9 +219,19 @@
;;
;; all packages should be loaded with use-package
;; server
(use-package server
:if window-system
:hook
((after-init-hook . server-start)
;; StumpWM interaction
(server-done-hook . (lambda ()
(shell-command
"stumpish 'eval (stumpwm::return-es-called-win stumpwm::*es-win*)'"))))
:init (setq server-raise-frame t))
;; which-key
;; Display available keybindings in popup
(use-package which-key
:config
(which-key-mode))