From 0d181a54531e5305535a5c584ac058562287f279 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Wed, 15 Nov 2017 17:03:04 -0500 Subject: [PATCH] Re-organize a few basic things --- global.org | 55 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/global.org b/global.org index 5f207dc..a17cea5 100644 --- a/global.org +++ b/global.org @@ -6,25 +6,38 @@ although I'd rather do something like a local variable evaluation such as # -*- eval: (add-hook 'before-save-hook 'org-icalendar-export-to-ics nil t) -*- -#+BEGIN_SRC emacs-lisp -(setq custom-file "~/.emacs.d/custom.el") -(load custom-file 'noerror) - -(add-to-list 'custom-theme-load-path "/home/jacopods/clones/emacs-color-theme-solarized") -(load-theme 'solarized t) -;;This kinda overrides the customize business, but it works -;; * Use patched terminus :fixme: - -(set-face-font 'default "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") -;;(set-face-font 'bold "-xos4-hackminus-bold-r-normal--20-200-72-72-c-100-ISO10646-1") - -;; ;; remove all bolding and slanting from all faces in every frame -;; (mapc -;; (lambda (face) -;; (set-face-attribute face nil :weight 'normal) -;; (set-face-attribute face nil :slant 'normal)) -;; (face-list)) +* Move Customize to a separate file + #+BEGIN_SRC emacs-lisp + (setq custom-file "~/.emacs.d/custom.el") + (load custom-file 'noerror) + #+END_SRC + +* Theming + Use (my clone of) the solarized scheme + #+BEGIN_SRC emacs-lisp + (add-to-list 'custom-theme-load-path "/home/jacopods/clones/emacs-color-theme-solarized") + (load-theme 'solarized t) + #+END_SRC + Use patched terminus font (this overrides the settings in Customize, but I never could it to work + otherwise). See the special treatment later on for dealing with bold weight + #+BEGIN_SRC emacs-lisp + (set-face-font 'default "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") + #+END_SRC + +* Global settings + Cleanup the appearance: remove the menu, toolbar and scrollbars; + remove splash screens and messages + #+BEGIN_SRC emacs-lisp + (menu-bar-mode -1) + (tool-bar-mode 0) + (scroll-bar-mode -1) + (setq inhibit-startup-screen t + inhibit-startup-message t) + #+END_SRC + +* Leftovers +#+BEGIN_SRC emacs-lisp (setq-default display-buffer-reuse-frames t) (add-hook 'before-save-hook 'delete-trailing-whitespace) (setq c-basic-offset 4) @@ -40,8 +53,7 @@ (setq compilation-scroll-output t compilation-window-height 12) -(tool-bar-mode 0) -(scroll-bar-mode -1) + (setq-default show-trailing-whitespace t) (setq search-whitespace-regexp "[ \t\r\n]+") (setq flyspell-use-meta-tab nil) @@ -89,8 +101,6 @@ Please notice that kde-emacs forces the menu to show ;;(setq kde-full-name "Jacopo De Simoi") ;;(setq kde-email "wilderkde@gmail.com") -(setq inhibit-startup-screen t) -(setq inhibit-startup-message t) (setq frame-title-format '((buffer-file-name "%f" @@ -444,7 +454,6 @@ This is the same as using \\[set-mark-command] with the prefix argument." ;; * start server named after kde activity name (setq server-name (kde-current-activity-name)) -(menu-bar-mode -99) ;; mmh ;; (set-face-font 'default "-xos4-hackminus-medium-r-normal--20-200-72-72-c-100-ISO10646-1") ; ;; Why is the above needed down here?