diff options
author | Alan Pearce | 2015-11-15 13:57:00 +0100 |
---|---|---|
committer | Alan Pearce | 2015-11-15 13:57:00 +0100 |
commit | 0ae946f65165ef8eebf17da7166092e0af0579d2 (patch) | |
tree | 273dac1d13e2b6b04da47ea84138c72897411831 /tag-emacs/emacs.d/elisp | |
parent | dbb5e71d90cbe3833df166cf7183d7b07c090bd5 (diff) | |
parent | dc6b681b05468122c7602c24847b770d1402d2c8 (diff) | |
download | nixfiles-0ae946f65165ef8eebf17da7166092e0af0579d2.tar.lz nixfiles-0ae946f65165ef8eebf17da7166092e0af0579d2.tar.zst nixfiles-0ae946f65165ef8eebf17da7166092e0af0579d2.zip |
Merge branch 'master' of github.com:alanpearce/dotfiles
Diffstat (limited to 'tag-emacs/emacs.d/elisp')
-rw-r--r-- | tag-emacs/emacs.d/elisp/ap-functions.el | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/tag-emacs/emacs.d/elisp/ap-functions.el b/tag-emacs/emacs.d/elisp/ap-functions.el deleted file mode 100644 index bdc7faef..00000000 --- a/tag-emacs/emacs.d/elisp/ap-functions.el +++ /dev/null @@ -1,47 +0,0 @@ -;;;###autoload -(defun ap/remove-extra-cr () - "Remove extraneous CR codes from a file" - (interactive) - (save-excursion - (goto-char (point-min)) - (while (search-forward " -" nil t) - (replace-match "")))) - -;;;###autoload -(defun copy-rectangle (start end) - "Copy the region-rectangle." - (interactive "r") - (setq killed-rectangle (extract-rectangle start end))) - -;;;###autoload -(defun eval-and-replace () - "Replace the preceding sexp with its value." - (interactive) - (backward-kill-sexp) - (condition-case nil - (prin1 (eval (read (current-kill 0))) - (current-buffer)) - (error (message "Invalid expression") - (insert (current-kill 0))))) - -;;;###autoload -(defun shell-execute (to-current-buffer) - (interactive "P") - (let ((file-buffer (if (buffer-file-name) - (file-name-nondirectory (buffer-file-name)) - "")) - (command (read-shell-command "Shell command: " nil nil nil))) - (shell-command (replace-regexp-in-string "%" file-buffer command) to-current-buffer))) - -;;;###autoload -(defun narrow-to-region-indirect (start end) - "Restrict editing in this buffer to the current region, indirectly." - (interactive "r") - (deactivate-mark) - (let ((buf (clone-indirect-buffer nil nil))) - (with-current-buffer buf - (narrow-to-region start end)) - (switch-to-buffer buf))) - -(provide 'ap-functions) |