diff options
Diffstat (limited to '')
-rw-r--r-- | lux-mode/lux-mode.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lux-mode/lux-mode.el b/lux-mode/lux-mode.el index b7a5b1c71..3bbccce88 100644 --- a/lux-mode/lux-mode.el +++ b/lux-mode/lux-mode.el @@ -220,14 +220,23 @@ ENDP and DELIM." (funcall self argument)))) ) +(defun lux/insert_semicolon () + "Just write a ; in the buffer." + (interactive) + (insert-char ?\;)) + (defun lux-paredit-setup () "Make \"paredit-mode\" play nice with `lux-mode'." (when (>= paredit-version 21) + ;; Extend (define-key lux-mode-map "{" #'paredit-open-curly) (define-key lux-mode-map "}" #'paredit-close-curly) - (add-to-list 'paredit-space-for-delimiter-predicates + (add-to-list 'paredit-space-for-delimiter-predicates #'lux-space-for-delimiter-p) (lux-enable-paredit-backslash) + ;; Re-bind + (define-key lux-mode-map + [remap paredit-semicolon] #'lux/insert_semicolon) )) (defun indent_lux_line! (&optional indent) |