Re-organize a few basic things

master
Jacopo De Simoi 8 years ago
parent 3501db8f3e
commit 0d181a5453
  1. 55
      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?

Loading…
Cancel
Save