Browse Source

Some emacs binds to make life easier

master
Taylor Bockman 5 years ago
parent
commit
c1e06df09e
  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 ;; 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) (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 ;; Install and load Packages
;;-------------------------------------------------------------------------------------- ;;--------------------------------------------------------------------------------------

Loading…
Cancel
Save