Browse Source

Some emacs binds to make life easier

Taylor Bockman 4 years ago
parent
commit
96ad312fb8
  1. 19
      dotfiles/emacs.d/init.el

19
dotfiles/emacs.d/init.el

@ -181,8 +181,27 @@ There are two things you can do about this warning:
;; Keybinds
;;--------------------------------------------------------------------------------------
;; <f1> is a mode bind for compile/eval based on language
(global-unset-key (kbd "<f1>"))
(global-unset-key (kbd "<f2>"))
;; Load up swiper search with C-s
(global-set-key "\C-s" 'swiper)
;; Switch windows with M-o
(global-set-key (kbd "M-o") 'other-window)
;; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lisp Binds ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;; Note: SLIME bindings require slime to be running.
;; Press <f1> in lisp mode to evaluate the buffer in SLIME
(define-key lisp-mode-map (kbd "<f1>") 'slime-eval-buffer)
;; Press <f2> in lisp mode to evaluate the current defun in SLIME.
(define-key lisp-mode-map (kbd "<f2>") 'slime-eval-defun)
;;--------------------------------------------------------------------------------------
;; Install and load Packages
;;--------------------------------------------------------------------------------------

Loading…
Cancel
Save