Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kevinjamescasey's full-sized avatar

Kevin Casey kevinjamescasey

View GitHub Profile
@kevinjamescasey
kevinjamescasey / emacs.md
Last active February 25, 2017 23:26
make GNU Emacs useful

This opens a file in the already running Emacs instance provided you have (server-start) in your init.el: alias emax='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n'

Usage example: emax ~/.emacs.d/init.el

Note: I couldn't get the OS X open command to use emacslient as the default editor. The bash EDITOR variable doesn't seem to work.

(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
(global-set-key (kbd "C-x C-b") 'ibuffer-list-buffers)
(global-set-key (kbd "M-z") 'zap-up-to-char)
(global-set-key [remap move-beginning-of-line] #'crux-move-beginning-of-line)