mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- 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.
27 lines
729 B
EmacsLisp
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
|