diff options
Diffstat (limited to '.emacs.d/lisp/init-crux.el')
-rw-r--r-- | .emacs.d/lisp/init-crux.el | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/.emacs.d/lisp/init-crux.el b/.emacs.d/lisp/init-crux.el index 0739bd3..9d00417 100644 --- a/.emacs.d/lisp/init-crux.el +++ b/.emacs.d/lisp/init-crux.el @@ -6,16 +6,6 @@ :defer 5 :commands crux-start-or-switch-to :config - (defmacro crux-with-region-or-sexp-or-line (func) - "When called with no active region, call FUNC on current sexp." - `(defadvice ,func (before with-region-or-sexp-or-line activate compile) - (interactive - (cond - (mark-active (list (region-beginning) (region-end))) - ((in-string-p) (flatten-list (bounds-of-thing-at-point 'string))) - ((thing-at-point 'list) (flatten-list (bounds-of-thing-at-point 'list))) - (t (list (line-beginning-position) (line-beginning-position 2))))))) - (crux-with-region-or-sexp-or-line sp-kill-region) (crux-with-region-or-buffer shell-command-on-region) (crux-with-region-or-buffer indent-region) |