(interactive "*p")
(end-of-line)
(open-line n)
- (call-interactively (next-line))
+ (next-line 1)
(indent-for-tab-command))
(defun re/open-line-above (n)
(mark-defun arg)
(kill-region (region-beginning) (region-end)))
-(defun re/kill-bword-or-region ()
- "Kill region if active, otherwise kill back one word."
- (interactive)
- (if (use-region-p)
- (call-interactively 'kill-region)
- (call-interactively 'backward-kill-word)))
+(defun re/kill-bword-or-region (&optional arg)
+"Kill region if active, otherwise kill back one word."
+(interactive "p")
+(if (use-region-p)
+ (kill-region (region-beginning) (region-end))
+ (backward-kill-word arg)))
(defun re/smart-beginning-of-line ()
"Move point to first non-whitespace character or `beginning-of-visual-line'.
(add-to-history 'search-ring
(buffer-substring (region-beginning) (region-end)))
(deactivate-mark))
- (call-interactively 'isearch-forward))
+ (isearch-forward))
(defun re/isearch-backward-use-region ()
"Search text in region if active, otherwise normal backward search."
(add-to-history 'search-ring
(buffer-substring (region-beginning) (region-end)))
(deactivate-mark))
- (call-interactively 'isearch-backward))
+ (isearch-backward))
(defun Tab (width)
"Give me a function analagous to the Acme `Tab' command"