Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; Save all
- (add-hook 'org-mode-hook (lambda () (setq buffer-save-without-query t)))
- (add-hook 'org-mode-hook (lambda () (setq palimpsest-mode t)))
- (add-hook 'markdown-mode-hook (lambda () (setq buffer-save-without-query t)))
- (add-hook 'emacs-lisp-mode-hook (lambda () (setq buffer-save-without-query t)))
- (add-hook 'text-mode-hook (lambda () (setq buffer-save-without-query t)))
- (add-hook 'css-mode-hook (lambda () (setq buffer-save-without-query t)))
- (define-hyper-key "s" 'save-some-buffers) ; save all
- ;; don't save org-agenda
- ;; doesn't work though, I get all kinds of org-agenda autosaves in my ~ home directory
- (add-hook 'org-agenda-mode-hook
- (lambda ()
- (add-hook 'auto-save-hook 'org-save-all-org-buffers nil t)
- (auto-save-mode)))
- ;;;; Ignore / Exclude Uninteresting Things
- ;; Make Buffer-stack ignore uninteresting buffers
- (defun buffer-stack-filter-regexp (buffer)
- "Non-nil if buffer is in buffer-stack-tracked."
- (not (or (string-match "Help\\|minibuf\\|org2blog\\|echo\\|conversion\\|server\\|Messages\\|tex\\|Output\\|temp\\|autoload\\|Customize\\|address\\|clock\\|Backtrace\\|Completions\\|grep\\|Calendar\\|archive\\|Work\\|Compile\\|tramp\\|accountability\\|helm\\|Alerts\\|Minibuf\\|Agenda\\|Echo\\|gnugol\\|RNC\\|widget\\|acct\\|melpa\\|fontification\\|Helm\\|daycolate\\|*Warnings*\\|*tags*\\|*gnugol*\\|*guide-key*" (buffer-name buffer))
- (member buffer buffer-stack-untracked))))
- (setq buffer-stack-filter 'buffer-stack-filter-regexp)
- ;; make it so that recentf does not record the following uninteresting file types
- (add-to-list 'recentf-exclude "\\ido.last\\'")
- (add-to-list 'recentf-exclude "\\recent-addresses\\'")
- (add-to-list 'recentf-exclude "org-clock-save.el")
- (add-to-list 'recentf-exclude "*message*")
- (add-to-list 'recentf-exclude ".tex")
- (add-to-list 'recentf-exclude "helm")
- (add-to-list 'recentf-exclude "\\ido*")
- (add-to-list 'recentf-exclude "archive")
- (add-to-list 'recentf-exclude "agenda")
- (add-to-list 'recentf-exclude "gnugol")
- ;; in dired, omit certain filetypes
- ;; ido-ignore
- (setq
- ido-ignore-files (quote ("\\`CVS/" "\\`#" "\\`.#" "\\`\\.\\./" "\\`\\./" "html" "*.mm" "Icon*" "*gz" "*ido.hist" "*archive*" "ics")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement