summary refs log tree commit diff
path: root/emacs.d/lib/my-settings.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/lib/my-settings.el53
1 files changed, 53 insertions, 0 deletions
diff --git a/emacs.d/lib/my-settings.el b/emacs.d/lib/my-settings.el
new file mode 100644
index 0000000..2e7e331
--- /dev/null
+++ b/emacs.d/lib/my-settings.el
@@ -0,0 +1,53 @@
+;; auto close bracket insertion
+(electric-pair-mode 1)
+
+;; ?
+(add-hook 'prog-mode-hook
+          (lambda () (setq show-trailing-whitespace t)))
+
+;; this makes emacs slow to work with source
+(delete 'Git vc-handled-backends)
+
+;; 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)
+
+;; reload the buffer when a file changes
+(global-auto-revert-mode 1)
+
+;; global settings for built-in emacs parameters
+(setq auto-save-default nil
+      auto-save-list-file-prefix nil
+      inhibit-startup-screen t
+      initial-scratch-message nil
+      make-backup-files nil
+      require-final-newline t
+      vc-follow-symlinks t
+      next-screen-context-lines 5
+      column-number-mode t
+      ring-bell-function 'ignore
+      tab-always-indent 'complete)
+
+(setq-default indent-tabs-mode nil
+              create-lockfiles nil)
+
+;; show parenthesis
+(show-paren-mode +1)
+
+;; no blink cursor
+(blink-cursor-mode -1)
+
+(when window-system
+  (tool-bar-mode 0)
+  (scroll-bar-mode 0)
+  (menu-bar-mode -1))
+
+;; I don't want a frindge on the right
+(fringe-mode '(4 . 0))
+
+;; Set default font
+(set-face-attribute 'default nil :family "Droid Sans Mono" :height 130 :weight 'normal :width 'normal)
+
+(provide 'my-settings)