diff options
author | Juergen Hoetzel <juergen@archlinux.org> | 2018-06-26 14:31:00 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-06-30 00:29:15 +0300 |
commit | 337301a7667bce4b7774a7ce5fa53638b4cf5987 (patch) | |
tree | 8f3c1848a22a37159f2c9cb650efd7ffe8e7c141 /data | |
parent | 7618fa81d3eadb9af4b1e66a54f3b21ac6d0721e (diff) | |
download | meson-337301a7667bce4b7774a7ce5fa53638b4cf5987.zip meson-337301a7667bce4b7774a7ce5fa53638b4cf5987.tar.gz meson-337301a7667bce4b7774a7ce5fa53638b4cf5987.tar.bz2 |
Setup mode-specific `comment-start' and `'comment-end'
Get rid of meson.comment-dwim workaround.
Diffstat (limited to 'data')
-rw-r--r-- | data/syntax-highlighting/emacs/meson.el | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/data/syntax-highlighting/emacs/meson.el b/data/syntax-highlighting/emacs/meson.el index 45c6983..bf147a1 100644 --- a/data/syntax-highlighting/emacs/meson.el +++ b/data/syntax-highlighting/emacs/meson.el @@ -1,14 +1,3 @@ -;; command to comment/uncomment text -(defun meson-comment-dwim (arg) - "Comment or uncomment current line or region in a smart way. -For detail, see `comment-dwim'." - (interactive "*P") - (require 'newcomment) - (let ( - (comment-start "#") (comment-end "") - ) - (comment-dwim arg))) - ;; keywords for syntax coloring (setq meson-keywords `( @@ -34,9 +23,7 @@ For detail, see `comment-dwim'." (setq font-lock-defaults '(meson-keywords)) (setq mode-name "meson") - - ;; modify the keymap - (define-key meson-mode-map [remap comment-dwim] 'meson-comment-dwim) -) + (setq-local comment-start "# ") + (setq-local comment-end "")) (add-to-list 'auto-mode-alist '("meson.build" . meson-mode)) |