From a946d68f3917c6d9f7bd702c4b325ef4342930e7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 12 Feb 2016 15:34:09 -0800 Subject: [emacs] rename the *emacs.el* file to *default.el* This file contains a bunch of defaults, so the new name makes more sense. --- emacs.d/inits/00_defaults.el | 25 +++++++++++++++++++++++++ emacs.d/inits/00_emacs.el | 31 ------------------------------- 2 files changed, 25 insertions(+), 31 deletions(-) create mode 100644 emacs.d/inits/00_defaults.el delete mode 100644 emacs.d/inits/00_emacs.el diff --git a/emacs.d/inits/00_defaults.el b/emacs.d/inits/00_defaults.el new file mode 100644 index 0000000..26ec0bb --- /dev/null +++ b/emacs.d/inits/00_defaults.el @@ -0,0 +1,25 @@ +;; alias yes-or-no to y-or-n +(fset 'yes-or-no-p 'y-or-n-p) + +;; set utf-8 as the default encoding +(prefer-coding-system 'utf-8-unix) + +(setq auto-save-default nil) + +(setq auto-save-list-file-prefix nil) + +;; *no* backups +(setq make-backup-files nil) + +;; always add a newline +(setq require-final-newline t) + +;; follow symlinks +(setq vc-follow-symlinks t) + +;; navigation +(setq next-screen-context-lines 5) + +(setq tab-always-indent 'complete) + +(global-auto-revert-mode 1) diff --git a/emacs.d/inits/00_emacs.el b/emacs.d/inits/00_emacs.el deleted file mode 100644 index 511076b..0000000 --- a/emacs.d/inits/00_emacs.el +++ /dev/null @@ -1,31 +0,0 @@ -;; alias yes-or-no to y-or-n -(fset 'yes-or-no-p 'y-or-n-p) - -;; set utf-8 as the default encoding -(prefer-coding-system 'utf-8-unix) - -(setq auto-save-default nil) - -(setq auto-save-list-file-prefix nil) - -;; *no* backups -(setq make-backup-files nil) - -;; always add a newline -(setq require-final-newline t) - -;; follow symlinks -(setq vc-follow-symlinks t) - -(setq tab-always-indent 'complete) - -(use-package exec-path-from-shell - :ensure t - :config - (exec-path-from-shell-initialize) - (exec-path-from-shell-copy-envs '("TMPDIR" "GOPATH"))) - -(use-package server - :config - (unless (server-running-p) - (server-start))) -- cgit 1.4.1