Move cc modes smartparen functions to config/default

This commit is contained in:
Henrik Lissner 2019-07-22 23:51:39 +02:00
parent 6cda303ae6
commit 8482f26d51
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 18 additions and 18 deletions

View file

@ -7,23 +7,6 @@
;;
;; Library
;;;###autoload
(defun +cc-sp-point-is-template-p (id action context)
"Return t if point is in the right place for C++ angle-brackets."
(and (sp-in-code-p id action context)
(cond ((eq action 'insert)
(sp-point-after-word-p id action context))
((eq action 'autoskip)
(/= (char-before) 32)))))
;;;###autoload
(defun +cc-sp-point-after-include-p (id action context)
"Return t if point is in an #include."
(and (sp-in-code-p id action context)
(save-excursion
(goto-char (line-beginning-position))
(looking-at-p "[ ]*#include[^<]+"))))
;;;###autoload
(defun +cc-c++-lineup-inclass (langelem)
"Indent inclass lines one level further than access modifier keywords."