mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
I've taken a lot of inspiration from Emacs-Prelude when it came to the structure of this rewritten config. I didn't want to use Prelude as I don't agree with all it's defaults, nor do I want to have to deal with any future changes in Prelude that might break things for me. So instead I went down the fully custom path, but heavily inspired by Prelude, both in terms of file/code structure, and also some of it's features. Compared to my old config setup, it's got most of the same things, but nearly everything is in a module file now, making it easy to fully enable/disable certain features.
35 lines
941 B
EmacsLisp
35 lines
941 B
EmacsLisp
;;
|
|
;; lisp
|
|
;;
|
|
|
|
(require 'siren-programming)
|
|
(siren-require-packages '(rainbow-delimiters))
|
|
|
|
;; 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-defaults ()
|
|
;; (smartparens-strict-mode +1)
|
|
(rainbow-delimiters-mode +1)
|
|
)
|
|
|
|
(setq siren-lisp-coding-hook 'siren-lisp-coding-defaults)
|
|
|
|
;; interactive modes don't need whitespace checks
|
|
(defun siren-interactive-lisp-coding-defaults ()
|
|
;; (smartparens-strict-mode +1)
|
|
(rainbow-delimiters-mode +1)
|
|
(whitespace-mode -1))
|
|
|
|
(setq siren-interactive-lisp-coding-hook 'siren-interactive-lisp-coding-defaults)
|
|
|
|
|
|
(provide 'siren-lisp)
|