Browse Source

update recentf sexps

pull/1/head
10sr 12 years ago
parent
commit
58d7eb5a8a
2 changed files with 5 additions and 2 deletions
  1. +4
    -2
      emacs.el
  2. +1
    -0
      setup.sh

+ 4
- 2
emacs.el View File

@@ -1164,14 +1164,16 @@ delete; o: select other; j, l: enlarge; h, k: shrink; q: quit."
recentf-show-file-shortcuts-flag nil) recentf-show-file-shortcuts-flag nil)


(when (require 'recentf nil t) (when (require 'recentf nil t)
(add-hook 'recentf-mode-hook
'recentf-save-list)
(recentf-mode 1) (recentf-mode 1)
(add-to-list 'recentf-exclude (regexp-quote recentf-save-file)) (add-to-list 'recentf-exclude (regexp-quote recentf-save-file))
(define-key ctl-x-map (kbd "C-r") 'recentf-open-files) (define-key ctl-x-map (kbd "C-r") 'recentf-open-files)
(add-hook 'find-file-hook (add-hook 'find-file-hook
'recentf-save-list 'recentf-save-list
t) ; save to file immediately after adding file to recentf list t) ; save to file immediately after adding file to recentf list
(remove-hook 'kill-emacs-hook
'recentf-save-list)
(add-hook 'kill-emacs-hook
'recentf-load-list)
;; (add-hook 'find-file-hook ;; (add-hook 'find-file-hook
;; (lambda () ;; (lambda ()
;; (recentf-add-file default-directory))) ;; (recentf-add-file default-directory)))


+ 1
- 0
setup.sh View File

@@ -95,6 +95,7 @@ mac_defaults(){
mac_start_daemon(){ mac_start_daemon(){
test "`uname`" = Darwin || return 1 test "`uname`" = Darwin || return 1


sudo launchctl setenv LC_ALL C
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
} }




Loading…
Cancel
Save