Skip to content

syohex/commenter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

commenter.el

This package allows you to set both single and multi line comment variables like comment-start or comment-end etc.

example

Configuration example for go-mode:

(setq comment-style 'extra-line)
   (add-hook 'go-mode-hook
     (lambda ()
       (setq-local commenter-config
           '((single
              . ((comment-start      . "//")
                 (comment-end        . "")
                 (comment-start-skip . "\\(//+\\|/\\*+\\)\\s *")))
             (multi
              . ((comment-start      . "/* ")
                 (comment-end        . " */")
                 (comment-start-skip . "/\\*")
                 (comment-end-skip   . "\\*/")
                 (comment-continue   . " * ")
                 (comment-padding    . " ")
                 (comment-multi-line . t)))))
       (commenter-setup)))

After this configuration your comment-dwim will be multi line comment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%