diff options
author | Franck Cuny <fcuny@twitter.com> | 2019-02-16 14:10:22 -0800 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2019-02-16 14:10:22 -0800 |
commit | 67c2168998c829c8739a0a4f73ab9d6117d07f0a (patch) | |
tree | a4dcb9f8a99f527187b08e77aea85e632c6a1396 /emacs.d/custom/fcuny-settings.el | |
parent | [emacs] Add a function to select and copy buffer. (diff) | |
download | emacs.d-67c2168998c829c8739a0a4f73ab9d6117d07f0a.tar.gz |
[emacs] Split configuration in multiple files.
This is actually an easier thing to maintain.
Diffstat (limited to '')
-rw-r--r-- | emacs.d/custom/fcuny-settings.el | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-settings.el b/emacs.d/custom/fcuny-settings.el new file mode 100644 index 0000000..4bdb447 --- /dev/null +++ b/emacs.d/custom/fcuny-settings.el @@ -0,0 +1,36 @@ +(require 'fcuny-vars) + +;; 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) + +(setq auto-save-default nil) ;; don't auto save files +(setq auto-save-list-file-prefix nil) ;; no backups +(setq create-lockfiles nil) ;; don't use a lock file +(setq custom-file fcuny/custom-settings) ;; where to save custom settings +(setq make-backup-files nil) ;; really no backups +(setq minibuffer-message-timeout 0.5) ;; How long to display an echo-area message +(setq next-screen-context-lines 5) ;; scroll 5 lines at a time +(setq require-final-newline t) ;; ensure newline exists at the end of the file +(setq ring-bell-function 'ignore) ;; really no bell +(setq tab-always-indent 'complete) ;; when using TAB, always indent +(setq visible-bell nil) ;; no bell +(setq column-number-mode t) ;; show column number in the mode line +(setq-default indent-tabs-mode nil) ;; turn off tab indentation +(setq-default cursor-type 'hbar) ;; cursor is a horizontal bar +(setq vc-handled-backends nil) ;; don't use the VC backend, it's too slow with source +(setq-default delete-by-moving-to-trash t) ;; delete files by moving them to the trash +(setq initial-scratch-message "") ;; empty scratch buffer + +(custom-set-variables + '(use-file-dialog nil) + '(use-dialog-box nil) + '(inhibit-startup-screen t) + '(inhibit-startup-message t) + '(inhibit-startup-echo-area-message t)) + +(provide 'fcuny-settings) |