 (bind-keys
  :map modi-mode-map
  ;; override the binding of `M-;' for `comment-dwim'
- ("M-;"     . toggle-comment-on-line-or-region)
+ ("M-;"     . endless/comment-line-or-region)
  ("<f9>"    . eval-region)
  ("C-x d"   . delete-region)
  ("s-SPC"   . just-one-space) ; Win-Space

;; Toggle comment on current line or selected region
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; http://stackoverflow.com/questions/9688748/emacs-comment-uncomment-current-line
(defun toggle-comment-on-line-or-region (&optional arg)
  "comment or uncomment current line or selected region , and go to the next line"
  (interactive)
  (if (region-active-p)
      (comment-or-uncomment-region (region-beginning) (region-end))
    (comment-or-uncomment-region (line-beginning-position) (line-end-position)))
  (next-line))

;; Make `kill-whole-line' indentation aware
;; https://github.com/lunaryorn/stante-pede/blob/master/init.el

;; Time-stamp: <2015-02-04 11:05:51 kmodi>

;; Functions related to editing text in the buffer

