
(when ds/emacs-up-to-date?
  (add-hook 'emacs-lisp-mode-hook 'prettify-symbols-mode))

;; Use double semi-colon for emacs lisp (default seems to be single).
(add-hook 'emacs-lisp-mode-hook (lambda () (setq comment-start ";;"
                                            comment-end "")))


(when ds/emacs-up-to-date?
  (add-hook 'emacs-lisp-mode-hook 'prettify-symbols-mode))

;; Use double semi-colon for emacs lisp (default seems to be single).
(add-hook 'emacs-lisp-mode-hook (lambda () (setq comment-start ";;"
                                            comment-end "")))


(defun insert-key-as-kbd (key)
  (interactive "kKey: ")
  (insert (format "(kbd \"%s\")" (key-description key))))

(define-key emacs-lisp-mode-map (kbd "C-,") #'insert-key-as-kbd)

Add function to insert `kbd` commands in elisp
Add function to insert `kbd` commands in elisp

davidshepherd7/dotfiles,davidshepherd7/dotfiles,davidshepherd7/dotfiles,davidshepherd7/dotfiles,davidshepherd7/dotfiles