Skip to content

Instantly share code, notes, and snippets.

@kevinjamescasey
Last active October 24, 2019 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinjamescasey/bbb861c59c3edb35cccfe3234c27f073 to your computer and use it in GitHub Desktop.
Save kevinjamescasey/bbb861c59c3edb35cccfe3234c27f073 to your computer and use it in GitHub Desktop.
(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)
(global-set-key (kbd "M-o") 'ace-window)
(global-set-key (kbd "C-x g") 'magit-status)
(global-set-key (kbd "M-,") 'beginning-of-buffer)
(global-set-key (kbd "M-.") 'end-of-buffer)
(global-set-key (kbd "C-;") 'er/expand-region)
(define-key (current-global-map) "\C-c!" 'shell-here)
(add-hook 'yaml-mode-hook
(lambda ()
(load-file "~/emacs_configs/yaml-path.el"))) ;https://github.com/craig-ludington/yaml-path/blob/master/yaml-path.el
(setf epa-pinentry-mode 'loopback); make gpg prompt for passphrase
(global-company-mode)
(delete-selection-mode 1);overwrite selected region
(global-unset-key (kbd "s-m"))
)
@kevinjamescasey
Copy link
Author

To apply the modifications made in ~/.spacemacs press SPC f e R. It will re-execute the Spacemacs initialization process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment