(use-package evil-nerd-commenter
  :config
  (evil-leader/set-key
    ";"  'evilnc-comment-or-uncomment-lines
    "ci" 'evilnc-comment-or-uncomment-lines
    "cl" 'evilnc-quick-comment-or-uncomment-to-the-line
    "cc" 'evilnc-copy-and-comment-lines
    "cp" 'evilnc-comment-or-uncomment-paragraphs
    "cr" 'comment-or-uncomment-region))

(provide 'evil-nerd-commenter-settings)

(use-package evil-nerd-commenter
  :config
  (evil-leader/set-key
    ";"  'evilnc-comment-or-uncomment-lines
    "ci" 'evilnc-comment-or-uncomment-lines
    "cl" 'evilnc-quick-comment-or-uncomment-to-the-line
    "cc" 'evilnc-copy-and-comment-lines
    "cp" 'evilnc-comment-or-uncomment-paragraphs
    "cr" 'comment-or-uncomment-region))

(add-hook 'c-mode-common-hook
          (lambda ()
            ;; Preferred comment style
            (setq comment-start "// "
                  comment-end "")))

(provide 'evil-nerd-commenter-settings)

Change default c-mode comment style to single line comments
Change default c-mode comment style to single line comments

rogerzanoni/dotfiles