 ;;        Numeric prefixes are supported too:
 ;;
 ;;        jj 5j 7j 2j j 7n n n j j p j n
-(key-chord-define-global "jj"
-                         (defhydra hydra-comment(:color red)
-                           "comment mode"
-                           ("j"   endless/comment-line-or-region "toggle comment")
-                           ("p"   previous-line                  "prev line")
-                           ("n"   next-line                      "next line")
-                           ("{"   backward-paragraph             "backward para")
-                           ("P"   backward-paragraph             "backward para")
-                           ("}"   forward-paragraph              "forward para")
-                           ("N"   forward-paragraph              "forward para")
-                           ("m"   set-mark-command               "set mark")
-                           ("d"   mark-defun                     "mark defun")
-                           ("s b" backward-sexp                  "backward sexp")
-                           ("s f" forward-sexp                   "forward sexp")
-                           ("q"   nil                            "cancel" :color blue)))
+(defhydra hydra-comment (:color red)
+  "comment"
+  ("j"   endless/comment-line-or-region "toggle comment")
+  ("p"   previous-line                  "prev line")
+  ("n"   next-line                      "next line")
+  ("{"   backward-paragraph             "backward para")
+  ("P"   backward-paragraph             "backward para")
+  ("}"   forward-paragraph              "forward para")
+  ("N"   forward-paragraph              "forward para")
+  ("m"   set-mark-command               "set mark")
+  ("f"   mark-defun                     "mark defun")
+  ("k"   smart-kill-whole-line          "kill line")
+  ("s b" backward-sexp                  "backward sexp")
+  ("s f" forward-sexp                   "forward sexp")
+  ("q"   nil                            "cancel" :color blue))
+(key-chord-define-global "jj" #'hydra-comment/body)
 
 (key-chord-define-global "^^" (λ (insert "λ")))
 


;; Forked version of https://github.com/purcell/unfill
(req-package unfill
  :load-path "from-git/unfill")

(with-eval-after-load 'region-bindings-mode
  (bind-keys

;; default binding `C-x =' with something else.
(bind-to-modi-map "=" what-cursor-position)

;; Comment Commander
;; 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
