 
 ;; http://stackoverflow.com/a/3035574/1219634
 (defun eval-and-replace-last-sexp ()
-  "Replace an emacs lisp expression (s-expression aka sexp) with its result"
+  "Replace an emacs lisp expression (s-expression aka sexp) with its result.
+
+How to use: Put the cursor at the end of an expression like (+ 1 2) and call
+this command."
   (interactive)
   (let ((value (eval (preceding-sexp))))
     (kill-sexp -1)
     (insert (format "%s" value))))
-;; How to use: Put the cursor at the end of an expression like (+ 1 2) and
-;; `M-x eval-and-replace-last-sexp`
+(bind-to-modi-map "x" eval-and-replace-last-sexp)
 
 ;; Toggle comment on current line or selected region
 ;; http://stackoverflow.com/questions/9688748/emacs-comment-uncomment-current-line

;; Time-stamp: <2015-03-10 13:34:05 kmodi>

;; Functions related to editing text in the buffer


  ("q"   nil                            "cancel" :color blue))
(key-chord-define-global "jj" #'hydra-comment/body)


(provide 'setup-editing)

