Auto-loading Emacs themes in daemon mode

好久不见. 提交于 2019-12-11 08:48:37

问题


I run emacs like this:

/usr/local/bin/emacsclient -q -a "" -t

and I have this in my .emacs:

;; ;; Theme
;; (if (daemonp)
;;     (add-hook 'after-make-frame-functions
;;            (lambda (frame)
;;              (message "Hello")
;;              (load-theme 'solarized-dark)))
;;   (load-theme 'solarized-dark t))
(load-theme 'solarized-dark t t)

This works when starting /usr/bin/emacs but not in daemon mode. As you can see from the commented lines, I've tried a few variations to get this working. I'm a beginner at emacs-lisp.

Manually running load-theme solarized-dark gets it working for all clients.

来源:https://stackoverflow.com/questions/21645121/auto-loading-emacs-themes-in-daemon-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!