Emacs: remove-dup function. (eq. to sort -u)

master
Pierre Neidhardt 2013-01-15 16:15:19 +01:00
parent b015bfa3ba
commit 2eb478caa8
2 changed files with 7 additions and 7 deletions

View File

@ -16,12 +16,12 @@
(let ((fill-column (point-max)))
(fill-region (region-beginning) (region-end) nil)))
;; Remove duplicate lines. (sort -u)
;; TODO: finish it.
;; (defun remove-duplicates ()
;; (interactive)
;; ((shell-command (echo blah)))
;; )
(defun remove-dup ()
(interactive)
(shell-command-on-region (point) (mark) "sort -u" (buffer-name) t)
)
;;==============================================================================
;; Toggle window split

View File

@ -82,8 +82,8 @@ folder-hook '$my_ac_work' 'source ~/.mutt/$my_ac_work'
folder-hook '$my_ac_university' 'source ~/.mutt/$my_ac_university'
## Switch to default account on startup
# source "~/.mutt/$my_ac_university"
source "~/.mutt/$my_ac_personal"
source "~/.mutt/$my_ac_university"
# source "~/.mutt/$my_ac_personal"
# source "~/.mutt/$my_ac_work"
## Keys