Files
.emacs.d/modules/siren-lisp.el
Jim Myhrberg a32cf8b132 Big refactor of modules and their use of use-package
- Make use of use-package's :bind option whenever possible.
- Make use of use-package's :hook option whenever possible.
- Rename and move all mode setup functions into use-package's :init
  step.
- Other minor misc fixes and tweaks to a few modules.
2018-04-20 10:29:45 +01:00

30 lines
792 B
EmacsLisp

;;; siren-lisp.el --- jimeh's Emacs Siren: lisp-mode configuration.
;;; Commentary:
;; Basic configuration for lisp-mode.
;;; Code:
(require 'siren-programming)
;; Lisp configuration
(define-key read-expression-map (kbd "TAB") 'completion-at-point)
;; wrap keybindings
(define-key lisp-mode-shared-map (kbd "M-(") (siren-wrap-with "("))
;; FIXME: Pick terminal-friendly binding.
;;(define-key lisp-mode-shared-map (kbd "M-[") (siren-wrap-with "["))
(define-key lisp-mode-shared-map (kbd "M-\"") (siren-wrap-with "\""))
;; a great lisp coding hook
(defun siren-lisp-coding-hook ())
;; interactive modes don't need whitespace checks
(defun siren-interactive-lisp-coding-hook ()
(highlight-indent-guides-mode)
(whitespace-mode -1))
(provide 'siren-lisp)
;;; siren-lisp.el ends here