Run command on new frame with daemon/client in Emacs

前端 未结 3 2153
我寻月下人不归
我寻月下人不归 2020-12-19 15:58

This is perhaps quite simple, but I haven\'t found anything useful when googling. So here it goes :)

I use Emacs in daemon mode (emacs --daemon) and it\

3条回答
  •  情歌与酒
    2020-12-19 16:16

    Another hook that is run each time emacsclient is invoked is server-visit-hook, which is perhaps more appropriate than after-make-frame-functions.

    (add-hook 'server-visit-hook 
         (lambda ()
              (keyboard-translate ?\C-j ?\C-c)
              (keyboard-translate ?\C-c ?\C-j)))
    

提交回复
热议问题