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

前端 未结 4 990

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:35

    You can add a function to the hook 'server-visit-hook, which is run every time the server is called (every time you call emacsclient).

提交回复
热议问题