General clean up
This commit is contained in:
parent
d2f680d405
commit
83ad33d6fe
5 changed files with 6 additions and 19 deletions
|
@ -23,20 +23,6 @@
|
|||
;; DEL mapping interferes with smartparens and my custom DEL binding
|
||||
(define-key c-mode-map (kbd "DEL") nil))
|
||||
|
||||
;;;###autoload
|
||||
(defun narf*c-lineup-arglist ()
|
||||
"Improve indentation of continued C++11 lambda function opened as argument."
|
||||
(setq ad-return-value
|
||||
(if (and (equal major-mode 'c++-mode)
|
||||
(ignore-errors
|
||||
(save-excursion
|
||||
(goto-char (c-langelem-pos langelem))
|
||||
;; Detect "[...](" or "[...]{". preceded by "," or "(",
|
||||
;; and with unclosed brace.
|
||||
(looking-at ".*[(,][ \t]*\\[[^]]*\\][ \t]*[({][^}]*$"))))
|
||||
0 ; no additional indent
|
||||
ad-do-it)))
|
||||
|
||||
;;;###autoload
|
||||
(defun narf|init-c++-C11-highlights ()
|
||||
;; We could place some regexes into `c-mode-common-hook', but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue