From 5f2b301a8df5410962519d2b7e9a977b03e75977 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 12 Feb 2016 20:58:37 -0800 Subject: [emacs] Split the config into 'core' and 'modes'. Separate the modules that are 'core' (e.g.: related to editing, manipulating text, and so on) and the 'modes' (e.g.: related to syntax, langage support, etc). --- emacs.d/core/core-ui.el | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 emacs.d/core/core-ui.el (limited to 'emacs.d/core/core-ui.el') diff --git a/emacs.d/core/core-ui.el b/emacs.d/core/core-ui.el new file mode 100644 index 0000000..ff70ae3 --- /dev/null +++ b/emacs.d/core/core-ui.el @@ -0,0 +1,54 @@ +;; no menu +(menu-bar-mode -1) + +;; show parenthesis +(show-paren-mode +1) + +;; enable colors +(global-font-lock-mode +1) + +;; no startup screen +(setq inhibit-startup-message t) +(setq initial-scratch-message ";; scratch buffer") + +(setq frame-title-format '(buffer-file-name "%f" ("%b"))) + +;; no blink cursor +(blink-cursor-mode -1) + +;; show the column number in the mode-line +(setq column-number-mode t) + +(when window-system + ;;hide tool-bar + (tool-bar-mode 0) + ;;hide scroll-bar + (scroll-bar-mode 0) + ;;hide menu-bar + (menu-bar-mode +1) + ;; set the font size and family + (custom-set-faces '(default ((t (:height 130 :family "Droid Sans Mono")))))) + +(require 'whitespace) +(global-whitespace-mode 1) +(setq whitespace-style '(face trailing tabs tab-mark)) + +(use-package leuven-theme + :init + (load-theme 'leuven t)) + +(use-package smart-mode-line + :ensure t + :config + (setq sml/theme 'light) + (setq rm-whitelist '("")) + (sml/setup)) + +(use-package rainbow-delimiters + :ensure t + :defer t + :init + (progn + (add-hook 'emacs-lisp-mode-hook #'rainbow-delimiters-mode))) + +(provide 'core-ui) -- cgit 1.4.1