diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-04-08 16:13:12 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-04-08 16:13:12 -0700 |
commit | 4007ca81e0105119c8ed754e654a731934f5154c (patch) | |
tree | 41ba9d60f64866c8a098e631e8e32bf4249931fa /emacs.d/modules/module-general.el | |
parent | [emacs] fix some path after directories reorg (diff) | |
download | emacs.d-4007ca81e0105119c8ed754e654a731934f5154c.tar.gz |
[emacs] Large refactoring.
At first I wanted to add support for java, and then I realized that maintaining a giant file with all the packages was not working as I was expected. The configuration is broken down to multiple files now, with each major mode in a separate file, and the main modules in their own too. This should make it easier to maintain and organize.
Diffstat (limited to '')
-rw-r--r-- | emacs.d/modules/module-general.el | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/emacs.d/modules/module-general.el b/emacs.d/modules/module-general.el new file mode 100644 index 0000000..6feec76 --- /dev/null +++ b/emacs.d/modules/module-general.el @@ -0,0 +1,59 @@ +;; set utf-8 as the default encoding +(prefer-coding-system 'utf-8-unix) +(set-terminal-coding-system 'utf-8) +(set-keyboard-coding-system 'utf-8) + +;; alias yes-or-no to y-or-n +(fset 'yes-or-no-p 'y-or-n-p) + +;; where to save the bookmarks +(setq bookmark-default-file (expand-file-name "var/bookmarks" user-emacs-directory) + bookmark-save-flag 1) + +;; reload the buffer when a file changes +(global-auto-revert-mode 1) + +;; clean old buffers at midnight +(use-package midnight + :config + (midnight-mode t)) + +;; scroll 5 lines at a time +(setq next-screen-context-lines 5) + +;; when using TAB, always indent +(setq tab-always-indent 'complete) + +;; don't auto save files +(setq auto-save-default nil) + +;; I really don't want backup files +(setq auto-save-list-file-prefix nil + make-backup-files nil) + +;; How long to display an echo-area message when the minibuffer is active. +(setq minibuffer-message-timeout 0.5) + +;; don't use a lock file +(setq-default create-lockfiles nil) + +;; where to save custom settings +(setq custom-file (expand-file-name "var/emacs-custom.el" user-emacs-directory)) + + +;; automatically revert the buffer if the content changed on disk +(use-package autorevert :diminish auto-revert-mode) + + +;; configuration for recentf, to interact with recent files +(use-package recentf + :config + (setq recentf-save-file (expand-file-name "var/recentf" user-emacs-directory))) + +(use-package server + :config + (unless (server-running-p) (server-start))) + + + +(provide 'module-general) |