How I use emacs
Launch the emacs server.
PATH=~/.ghcup/bin:$PATH emacs --fg-daemonI think this may require version at least 26. If there are things that ought to be in your
PATH(for mecabalinstalled by ghcup) this is a convenient way to ensure that they are there.Launch the emacs client as a long-running editor
emacsclient --create-frameTo close this frame you will have to do
C-x 5 0(save-buffers-kill-terminalwill also work).Launch the emacs client here in this terminal (for use as a Git commit message editor, etc.)
emacsclient --create-frame --alternate-editor=jmacs [filenames]You can put this in the
EDITORenvironment variable. It will fall back tojmacsas an alternative editor if the emacs server is not running.If no filenames were provided then you can use
C-x 5 0to close the frame. If filenames were provided then you also have the option to close the frame by killing all their buffers.Git blame
https://stackoverflow.com/questions/15460550/git-blame-with-commit-details-in-emacs
TAB means TAB
M-x local-set-key<RET> <TAB> self-insert-commandSee Understanding GNU Emacs and Tabs. I really want to apply this to particular files only, but I’m not sure how.
Turn of LSP “signature” popups
(setq lsp-signature-auto-activate nil) (setq lsp-signature-render-documentation nil)https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/
Things I want to know
- How to do the equivalent of mouse middle button paste from the
keyboard. See https://www.emacswiki.org/emacs/CopyAndPaste. (Seems
to be
mouse-yank-primary)
Features I want
I want
C-x bto always go back to the last buffer I was in. By default it does not if another window is already visiting that buffer.Helm
Tab completion: it should complete up to the longest common prefix, not choose the currently selected
Helm: tying
filenamematchesFileName. Typingdir/filenameshould matchDir/filename.
When I’m visiting a buffer whose file has been
git mv’d, offer to move the buffer to it.Select containing expression