How to automatically evaluate certain lisp code after starting an emacsclient?

前端 未结 4 998

When starting Emacs, init.el (or .emacs.el) is evaluated. However, when starting emacsclient, no similar lisp code is evaluated.

How can I get a lisp file to be eval

4条回答
  •  佛祖请我去吃肉
    2020-12-15 08:18

    If you really want new frame customizations, there's create-frame-hook which takes one arg (the new frame)...

    If you mean gnuclient, you can use the command-line option "-eval" to evaluate something (and then just make an alias to always eval your customizations).

提交回复
热议问题