My Emacs config
Run Emacs in daemon mode:
$ emacs -daemon
$ brew services restart d12frosted/emacs-plus/emacs-plus@29 # with emacs-plus
Afterwards I connect to the server with either a terminal or a GUI client like this:
$ emacsclient -t
$ emacsclient -c
You'd probably do well to put a few aliases in your .zshrc (or .bashrc):
alias e='TERM=xterm-256color emacsclient -t'
alias ec='emacsclient -c'
Also you can open a file with cursor on choosen line:
$ emacsclient somefile:1234
The simplest way to stop the emacs daemon
from within emacs is to use the kill-emacs
commands.
From outside of emacs this can be achieved using emacsclient:
$ emacsclient -e '(kill-emacs)'
I also added an alias in my .bashrc
alias ek="emacsclient -e '(kill-emacs)'"
This will shutdown the daemon immediately with out prompting or saving files
M-j
join lineM-\
M-x delete-horizontal-space<F2>
toggle neotreeC-c f J
reveal-in-osx-finderC-c j i
avy-goto-char-in-lineC-c j j
avy-goto-charC-c j w
avy-goto-word-1C-c j l
avy-goto-lineC-c j b
avy-pop-markC-c j k
avy-goto-char-2C-c j p
goto-last-changeC-c j n
goto-last-change-reverseC-c g g
counsel-git-grepC-x p f
projectile find-fileC-c C-<
mc/mark-all-like-thisC-c C-,
mc/mark-all-like-thisC-x v g
vc-annotate, git annotate
C-x h C-M-\
C-x h runs the command mark-whole-buffer
C-M-\ runs the command indent-region