Files
.emacs.d/modules/languages/siren-lisp.el
Jim Myhrberg 8ed4a4e6f5 refactor: Visual indentation guides
- Switch from highlight-indentation package to highlight-indent-guides.
- Activate visual indentation in a prog-mode hook, rather than doing
  within each individual major mode. It was already done within all
  major modes based on prog-mode anyway.
- Add new siren-display-indetation module and function as a central way
  to enable visual indetation guides. This makes switching the
  underlying package at some point in the future much easier.
2020-01-26 18:53:44 +00:00

27 lines
729 B
EmacsLisp

;;; siren-lisp.el --- jimeh's Emacs Siren: lisp-mode configuration.
;;; Commentary:
;; Basic configuration for lisp-mode.
;;; Code:
;; 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 ()
(whitespace-mode -1))
(provide 'siren-lisp)
;;; siren-lisp.el ends here