knowler / dotfiles

Personal dotfiles for macOS and Manjaro.
24 stars 0 forks source link

[macos+emacs] install and configure Emacs #8

Closed knowler closed 4 years ago

knowler commented 4 years ago

If my vim-brain can handle this. Will dump notes here.

knowler commented 4 years ago

For now, using the GUI seems to be easier than the terminal since there is a lot of shortcut conflicts. For example, Alacritty doesn’t seems to register Meta as alt in emacs. I did figure out the Alacritty config to handle this, but then I had issues with some of my tmux navigation commands conflicting.

knowler commented 4 years ago

So, compared to vim:

knowler commented 4 years ago

Quit: C-x C-c

I could be wrong, but the window related shortcuts seem to use the prefix: C-x.

knowler commented 4 years ago

https://github.com/knowler/dotfiles/pull/8#issuecomment-735556471

If for whatever reason, alt cannot be used as the modifier, then Emacs will use Escape.

knowler commented 4 years ago

A goal I have in learning here is to not waste a ton of time on rebinding the keys.

knowler commented 4 years ago

By default, the prefix keys in Emacs are ‘C-c’, ‘C-h’, ‘C-x’, ‘C-x

’, ‘C-x @’, ‘C-x a’, ‘C-x n’, ‘C-x r’, ‘C-x t’, ‘C-x v’, ‘C-x 4’, ‘C-x 5’, ‘C-x 6’, , ‘M-g’, and ‘M-o’. Typing the help character (‘C-h’ or ) after a prefix key displays a list of the commands starting with that prefix