diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2014-11-27 22:53:15 (GMT) |
|---|---|---|
| committer | Ravi R Kiran <aine.marina@gmail.com> | 2014-11-27 22:53:15 (GMT) |
| commit | ff55ada1317d11219c015052b6cd423a56f83cad (patch) | |
| tree | 2e7f3c0d1d6faba3ab3ecdac9fa9e8ee3c75a028 | |
| parent | 0515b77ef4f5c5cb3db05a5c76d009bb6e43be88 (diff) | |
| download | dotemacs-ff55ada1317d11219c015052b6cd423a56f83cad.zip dotemacs-ff55ada1317d11219c015052b6cd423a56f83cad.tar.gz dotemacs-ff55ada1317d11219c015052b6cd423a56f83cad.tar.bz2 | |
Commenting fixes
Use comment-dwim-2 and do not set comment-style globally in header
insertion.
| -rw-r--r-- | ravi-init-appearance.el | 4 | ||||
| -rw-r--r-- | ravi-init-cpp.el | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ravi-init-appearance.el b/ravi-init-appearance.el index caff195..8c5b173 100644 --- a/ravi-init-appearance.el +++ b/ravi-init-appearance.el @@ -147,6 +147,10 @@ Delete all whitespace on a successive key press." (let ((mark-even-if-inactive transient-mark-mode)) (indent-region (region-beginning) (region-end) nil)))))) +(use-package comment-dwim-2 + :bind (("M-;" . comment-dwim-2)) + :ensure t) + ;; Keep my navigation simple (setq line-move-visual nil) diff --git a/ravi-init-cpp.el b/ravi-init-cpp.el index 53d52ca..62e1563 100644 --- a/ravi-init-cpp.el +++ b/ravi-init-cpp.el @@ -255,9 +255,9 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named (save-excursion (let ((start (point-min)) + (comment-style 'box) (end) ) - (setq comment-style 'box) (goto-char start) (insert (ravi-license-header)) (setq end (point)) @@ -279,9 +279,9 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named (defun ravi-license-insert () (progn (let ((start (point-min)) + (comment-style 'box) (end) ) - (setq comment-style 'box) (goto-char start) (insert (ravi-license-header)) (insert "\n") |
