fix ; defun

This commit is contained in:
Thomas von Dein
2018-11-17 19:49:42 +01:00
parent c57990f682
commit 004b2ce255
2 changed files with 492 additions and 492 deletions

6
.emacs
View File

@@ -2218,11 +2218,11 @@ Used when enabling smartparens-mode."
;; I use my own lisp comment tool until sp#942 is fixed
(defun tvd-lisp-comment ()
(interactive)
(if (not (looking-at "\("))
(if (not (looking-at "\s*\("))
(self-insert-command 1)
(let ((beg (point)))
(forward-list 1)
(when (looking-at "\(")
(when (looking-at "\s*\)")
(insert "\n"))
(comment-region beg (point))
(indent-for-tab-command)
@@ -2362,7 +2362,7 @@ respectively."
(define-key smartparens-mode-map (kbd "C-S-<right>") 'sp-previous-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
;; FIXME: fhceck/fix M<up+down>!