mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
fix ; defun
This commit is contained in:
6
.emacs
6
.emacs
@@ -2218,11 +2218,11 @@ Used when enabling smartparens-mode."
|
|||||||
;; I use my own lisp comment tool until sp#942 is fixed
|
;; I use my own lisp comment tool until sp#942 is fixed
|
||||||
(defun tvd-lisp-comment ()
|
(defun tvd-lisp-comment ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (not (looking-at "\("))
|
(if (not (looking-at "\s*\("))
|
||||||
(self-insert-command 1)
|
(self-insert-command 1)
|
||||||
(let ((beg (point)))
|
(let ((beg (point)))
|
||||||
(forward-list 1)
|
(forward-list 1)
|
||||||
(when (looking-at "\(")
|
(when (looking-at "\s*\)")
|
||||||
(insert "\n"))
|
(insert "\n"))
|
||||||
(comment-region beg (point))
|
(comment-region beg (point))
|
||||||
(indent-for-tab-command)
|
(indent-for-tab-command)
|
||||||
@@ -2362,7 +2362,7 @@ respectively."
|
|||||||
(define-key smartparens-mode-map (kbd "C-S-<right>") 'sp-previous-sexp)
|
(define-key smartparens-mode-map (kbd "C-S-<right>") 'sp-previous-sexp)
|
||||||
|
|
||||||
;; comment the whole sexp
|
;; comment the whole sexp
|
||||||
(define-key smartparens-mode-map (kbd ";") 'tvd-lisp-comment)
|
(define-key smartparens-mode-map (kbd) ";" 'tvd-lisp-comment)
|
||||||
|
|
||||||
;; replace my global setting
|
;; replace my global setting
|
||||||
;; FIXME: fhceck/fix M<up+down>!
|
;; FIXME: fhceck/fix M<up+down>!
|
||||||
|
|||||||
978
emacs.html
978
emacs.html
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user