Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin Casey kevinjamescasey

View GitHub Profile
View .spacemacs
(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)
@kevinjamescasey
kevinjamescasey / emacs.md
Last active Feb 25, 2017
make GNU Emacs useful
View emacs.md

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.