 (bind-to-modi-map "=" what-cursor-position)
 
 ;; Source: http://oremacs.com/2015/01/14/repeatable-commands/
-;; Usage: Quickly press 3 two times consecutively; that will toggle comment
-;;        on the current line or region and proceed the cursor to the next line.
-;;        Now each consecutive pressing of 3, will toggle the comment on that
+;; Usage: Quickly pressing `j' twice will toggle comment on the current line or
+;;        region and proceed the cursor to the next line.
+;;        Now each consecutive pressing of `j', will toggle the comment on that
 ;;        line and proceed to the next line. Pressing `p' or `n' will simply
 ;;        navigate the cursor to the next or previous line without commenting
 ;;        or uncommenting anything.
 ;;
-;;        33 3 3 3 3 3 n n n 3 3 p 3 n
+;;        jj j j j j j n n n j j p j n
 ;;
-;;        Press any other key (other than 3, p or n) to quit this behavior.
-(key-chord-define-global "33" (def-rep-command
-                                `(("3" . toggle-comment-on-line-or-region)
-                                  ("p" . previous-line)
-                                  ("n" . next-line))))
+;;        Numeric prefixes are supported too:
+;;
+;;        jj 5j 7j 2j j 7n n n j j p j n
+;;
+;;        Press any other key (other than j, p or n) to quit this behavior.
+(key-chord-define-global "jj" (defhydra hydra-comment()
+                                "comment and navigate"
+                                ("j" endless/comment-line-or-region "toggle comment")
+                                ("p" previous-line "go to previous line")
+                                ("n" next-line "go to next line")))
 
 (key-chord-define-global "^^" (λ (insert "λ")))
 

 ("C-x C-u" . modi/upcase)
 ("C-x C-l" . modi/downcase))

(hydra-create "M-c"
  '(("c"   modi/capitalize       "Capitalize")     ; M-c c
    ("u"   modi/upcase           "UPCASE")         ; M-c u
    ("l"   modi/downcase         "downcase")       ; M-c l
    ("M-c" xah-cycle-letter-case "→Cap→UP→down→")) ; M-c M-c
  modi-mode-map)

(bind-to-modi-map "x" eval-and-replace-last-sexp)
;; Bind `what-cursor-position' to `modi-mode-map' as I have overridden its

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

;; Functions related to editing text in the buffer

