Earlier this year recoded some emacs code.

There are plenty of new emacs snippets forthcoming, albeit with doubles from earlier posts.

Worth a glance.

buffer defaults

(setq global-auto-revert-non-file-buffers t)
; Do not generate any messages (be quiet about refreshing Dired).
(setq auto-revert-verbose nil)
;Auto refresh buffers
(global-auto-revert-mode 1)

;encourage new frame over new window
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)

(setq mode-require-final-newline 'visit-save)

;buffers with unique names
(setq uniquify-buffer-name-style 'forward)

save buffer defaults

(require 'recentf)
(recentf-mode 1)
(setq recentf-max-saved-items 100)
;save abbrevs silently ( I don't use abbrevs)
;(setq save-abbrevs 'silently)

(savehist-mode 1)
(setq history-length 1000)
; set auto-save-interval to 0 seconds to disable
(setq auto-save-interval 0)

; Save point position between sessions
(require 'saveplace)
(setq-default save-place t)
(setq save-place-file (expand-file-name ".places" save-place-file-p))

;; Don't create backup~ files.
(setq make-backup-files nil)

 ;; Don't create #autosave# files.
(setq auto-save-default nil)


;Auto-Saving Changed Files
(use-package super-save
;:ensure t
:defer 1
:diminish super-save-mode
(setq super-save-exclude '("\\*dashboard\\*"))
(setq super-save-auto-save-when-idle t)
);end supersave

minibuffer defaults

;; Allow recursive minibuffers
(setq enable-recursive-minibuffers t)
;dired-mode do not ask repeatedly to copy recursively (or delete)

;;show recursion depth in minibuffer
(minibuffer-depth-indicate-mode t)
;; Save minibuffer history

(fset 'yes-or-no-p 'y-or-n-p)

; Silence warnings for redefinition
(setq ad-redefinition-action 'warn) ;'accept

;warning level ?
(setq warning-minimum-level :emergency)

Image: Jesse Eisenberg playing Mark Zuckerburg in "The Social Network."

comments powered by Disqus