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