emacskeys's profile picture. Daily tips on Emacs

Emacs Keys

@emacskeys

Daily tips on Emacs

Emacs Keys reposted

Type C-u to discard the current input line in Bash or Zsh, i.e., type ctrl + u to kill the current line. See "unix-line-discard" in "man bash" or "kill-whole-line" in "man zshzle" for details. By the way, Emacs-style key sequence C-a C-k works too. #unix #linux #shell #emacs


Emacs Keys reposted

Do you use Paredit but find its default key bindings for slurp/barf hard to recall? I have a mnemonic: slurp has p, p for paren, so slurp forward with C-). b for barf, b for brace, so barf forward with C-}. Also, see this #emacs chat for a more visual mnemonic that I often use.

susam's tweet image. Do you use Paredit but find its default key bindings for slurp/barf hard to recall?

I have a mnemonic: slurp has p, p for paren, so slurp forward with C-). b for barf, b for brace, so barf forward with C-}.

Also, see this #emacs chat for a more visual mnemonic that I often use.

Type M-b to move backward by one word and M-f to move forward by one word. Note: M- represents the Meta modifier key. On modern keyboards, M-b can be typed in two ways: Alt+b or Esc b. Similarly, M-f is Alt+f or Esc f. The Alt way is faster to use in most cases. #emacs


Type C-a to move to the beginning of a line and C-e to move to the end of a line. Bonus: The same key bindings work on Bash and Zsh too. #emacs #bash #zsh


Emacs Keys reposted

Emacs keys for absolute beginners: Edit file: C-x C-f hello.txt RET (Note: C-x denotes ctrl+x. RET denotes the enter key.) Move up, down, left, or right: C-p, C-n, C-b, C-f Move to beginning or end of line: C-a, C-e Save file: C-x C-s Quit Emacs: C-x C-c #emacs #tips


Type C-n to move to next line and C-p to move to previous line. #emacs


Press C-f to move forward one character and C-b to move backward one character.


Press the key sequence C-x C-f to edit a file in Emacs. Here is how a complete key sequence looks like: C-x C-f hello.txt RET Remember in the Emacs world (and elsewhere too), the notation C- denotes the ctrl key. Thus C-x denotes ctrl + x. #emacs #unix #linux #programming


Loading...

Something went wrong.


Something went wrong.