From defdb394d8bdc32a28a092126001b94eabb7fb93 Mon Sep 17 00:00:00 2001 From: Blendoit Date: Mon, 20 Jul 2020 17:12:55 -0700 Subject: Custom configuration reborn. --- .gitignore | 10 +- README.org | 37 ++-- README.pdf | Bin 0 -> 154631 bytes blendoit/.gitignore | 2 + blendoit/custom/custom-file.org | 67 +++++++ blendoit/init-blendoit.org | 388 ++++++++++++++++++++++++++++++++++++++++ blendoit/init-blendoit.pdf | Bin 0 -> 103107 bytes blendoit/secrets.org | 4 + init.el | 15 +- init_blendoit.el | 49 ----- init_emacs.el | 38 ---- init_evil-leader-keys.el | 16 -- init_org-mode.el | 29 --- 13 files changed, 496 insertions(+), 159 deletions(-) create mode 100644 README.pdf create mode 100644 blendoit/.gitignore create mode 100644 blendoit/custom/custom-file.org create mode 100644 blendoit/init-blendoit.org create mode 100644 blendoit/init-blendoit.pdf create mode 100644 blendoit/secrets.org delete mode 100644 init_blendoit.el delete mode 100644 init_emacs.el delete mode 100644 init_evil-leader-keys.el delete mode 100644 init_org-mode.el diff --git a/.gitignore b/.gitignore index 7fe5172..30f2d86 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,11 @@ # .gitignore -.#* -'#* -*.html *.tex -*.pdf -.cache/** +*.lot +*.lof elpa/** +url/** auto-save-list/** transient/** ido.last +recentf +srecode-map.el \ No newline at end of file diff --git a/README.org b/README.org index daccd54..000b193 100644 --- a/README.org +++ b/README.org @@ -1,27 +1,40 @@ #+TITLE: GNU Emacs Configuration #+AUTHOR: Marius Peter +#+DATE: <2020-07-20 Mon> * Installation ** Linux - 1. Backup your current =~/.emacs.d= with the following command: - =mv ~/.emacs.d ~/.emacs.d.bkp= - 2. Clone my configuration folder to your home directory: - =cd ~= followed by =git clone https://github.com/Blendoit/.emacs.d.git= + +Backup your current =~/.emacs.d= with the following command: + +#+BEGIN_SRC: emacs-lisp +mv ~/.emacs.d ~/.emacs.d.bkp +#+END_SRC + +Clone my configuration folder to your home directory: =cd ~= followed by: + +#+BEGIN_SRC: emacs-lisp +git clone https://github.com/Blendoit/.emacs.d.git +#+END_SRC * Main Files ** =init.el= - - Loads the following 2 configuration files. -** =init_emacs.el= - - You may delete its content initially. - - By default, all customization options available in Emacs' GUI that can be saved with =Options - Save Options= are saved here. - - Useful to fool around with GUI customization options, without breaking our manually written code. - -** =init_blendoit.el= - - Load my personal configuration files. + - This file's only purpose is to load my literate configuration. + +** =blendoit/init-blendoit.org= + + - Load my personal literate configuration files. + +** =blendoit/custom-file.el= + - By default, all customization options available in Emacs' GUI that can be + saved with =Options - Save Options= are saved here. + - This is useful to fool around with GUI customization options, without + breaking our manually written code. + * Usage Each configuration file is commented. diff --git a/README.pdf b/README.pdf new file mode 100644 index 0000000..63b4937 Binary files /dev/null and b/README.pdf differ diff --git a/blendoit/.gitignore b/blendoit/.gitignore new file mode 100644 index 0000000..0e42b29 --- /dev/null +++ b/blendoit/.gitignore @@ -0,0 +1,2 @@ +# blendoit/.gitignore +*.el \ No newline at end of file diff --git a/blendoit/custom/custom-file.org b/blendoit/custom/custom-file.org new file mode 100644 index 0000000..3200ffd --- /dev/null +++ b/blendoit/custom/custom-file.org @@ -0,0 +1,67 @@ +#+BEGIN_SRC emacs-lisp +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(ansi-color-names-vector + ["#3F3F3F" "#CC9393" "#7F9F7F" "#F0DFAF" "#8CD0D3" "#DC8CC3" "#93E0E3" "#DCDCCC"]) + '(company-quickhelp-color-background "#4F4F4F") + '(company-quickhelp-color-foreground "#DCDCCC") + '(cua-mode t nil (cua-base)) + '(custom-enabled-themes nil) + '(custom-safe-themes + (quote + ("f56eb33cd9f1e49c5df0080a3e8a292e83890a61a89bceeaa481a5f183e8e3ef" default))) + '(fci-rule-color "#383838") + '(line-number-mode nil) + '(nrepl-message-colors + (quote + ("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3"))) + '(org-agenda-diary-file "~/org/PERSONAL/diary/diary.org") + '(org-agenda-files (quote ("~/org/PERSONAL/diary/diary.org"))) + '(org-time-stamp-custom-formats (quote ("%d %b, %Y (%a)" . "%d %b, %Y (%a), at %H:%M"))) + '(package-selected-packages + (quote + (which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init))) + '(pdf-view-midnight-colors (quote ("#DCDCCC" . "#383838"))) + '(vc-annotate-background "#2B2B2B") + '(vc-annotate-color-map + (quote + ((20 . "#BC8383") + (40 . "#CC9393") + (60 . "#DFAF8F") + (80 . "#D0BF8F") + (100 . "#E0CF9F") + (120 . "#F0DFAF") + (140 . "#5F7F5F") + (160 . "#7F9F7F") + (180 . "#8FB28F") + (200 . "#9FC59F") + (220 . "#AFD8AF") + (240 . "#BFEBBF") + (260 . "#93E0E3") + (280 . "#6CA0A3") + (300 . "#7CB8BB") + (320 . "#8CD0D3") + (340 . "#94BFF3") + (360 . "#DC8CC3")))) + '(vc-annotate-very-old-color "#DC8CC3")) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(default ((t (:family "Hack" :foundry "SRC" :slant normal :weight normal :height 142 :width normal)))) + '(fixed-pitch ((t (:family "Hack")))) + '(org-document-title ((t (:inherit default :weight bold :font "Liberation Sans" :height 2.0 :underline nil)))) + '(org-level-1 ((t (:inherit default :weight bold :font "Liberation Sans" :height 1.75)))) + '(org-level-2 ((t (:inherit default :weight bold :font "Liberation Sans" :height 1.5)))) + '(org-level-3 ((t (:inherit default :weight bold :font "Liberation Sans" :height 1.25)))) + '(org-level-4 ((t (:inherit default :weight bold :font "Liberation Sans" :height 1.1)))) + '(org-level-5 ((t (:inherit default :weight bold :font "Liberation Sans")))) + '(org-level-6 ((t (:inherit default :weight bold :font "Liberation Sans")))) + '(org-level-7 ((t (:inherit default :weight bold :font "Liberation Sans")))) + '(org-level-8 ((t (:inherit default :weight bold :font "Liberation Sans")))) + '(variable-pitch ((t (:family "Liberation Sans"))))) + #+END_SRC diff --git a/blendoit/init-blendoit.org b/blendoit/init-blendoit.org new file mode 100644 index 0000000..e9caf19 --- /dev/null +++ b/blendoit/init-blendoit.org @@ -0,0 +1,388 @@ +#+TITLE: Blendoit's Emacs configuration +#+AUTHOR: Marius Peter +#+DATE: <2020-07-19 Sun> +#+STARTUP: customtime showall +#+SETUPFILE: ~/org/templates/documents/personal.org +#+INCLUDE: ~/org/templates/documents/personal-title.org + +#+BEGIN_abstract +Emacs enables an unparalleled level of customisation by allowing the +introspection of every variable and function that can be understood by the +software. The possibilities are endless. +#+END_abstract + +* Preliminary setup + +** Garbage collection + +Increase the garbage collection limit. + +#+NAME: garbage-collection +#+BEGIN_SRC emacs-lisp +(setq gc-cons-threshold 100000000) +#+END_SRC + +** Custom file + +Load settings created automatically by GNU Emacs Custom. (For example, any +clickable option/toggle is saved here.) Useful for fooling around with M-x +customize-group . + +#+NAME: custom-file +#+BEGIN_SRC emacs-lisp + +(setq custom-file "~/.emacs.d/blendoit/custom/custom-file.org") +(org-babel-load-file custom-file) +#+END_SRC + +** Shortcut + +We begin by defining a user shortcut to this very file: + +#+NAME: shortcut-config +#+BEGIN_SRC emacs-lisp + (defun find-init-blendoit () + "Jump to this very file." + (interactive) + (find-file "~/.emacs.d/blendoit/init-blendoit.org")) + (global-set-key (kbd "C-c c") 'find-init-blendoit) +#+END_SRC + +** Backups + +Backups are so important that they should be described right after the shortcut +to this file. + +#+BEGIN_SRC emacs-lisp +(setq backup-directory-alist `((".*" . ,temporary-file-directory)) +auto-save-file-name-transforms `((".*" ,temporary-file-directory t)) + backup-by-copying t ; Don't delink hardlinks + version-control t ; Use version numbers on backups + delete-old-versions t ; Automatically delete excess backups + kept-new-versions 20 ; how many of the newest versions to keep + kept-old-versions 5 ; and how many of the old + ) +#+END_SRC + +** Secrets + +#+INCLUDE: ./secrets.org + +* Bindings + +#+BEGIN_SRC emacs-lisp +(global-set-key (kbd "C-c e") 'eval-buffer) +(global-set-key (kbd "C-s") 'save-buffer) +(global-set-key (kbd "C-b") 'ibuffer-sidebar-toggle-sidebar) +(global-set-key (kbd "C-w") 'kill-buffer-and-window) +(global-set-key (kbd "C-c a") 'org-agenda) +#+END_SRC + +** Zoom + + Zoom in/out of selected buffer. + +#+BEGIN_SRC emacs-lisp + (global-set-key [M-mouse-4] 'text-scale-increase) + (global-set-key [M-mouse-5] 'text-scale-decrease) +#+END_SRC + +* Packages + +List of package archives. + +#+NAME: packages +#+BEGIN_SRC emacs-lisp +(require 'package) +(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) +(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) +(package-initialize) +#+END_SRC + +#+RESULTS: packages + +Ensure =use-package= is installed. + +#+BEGIN_SRC emacs-lisp +(unless (package-installed-p 'use-package) +(package-refresh-contents) +(package-install 'use-package) +(eval-when-compile (require 'use-package))) +(setq use-package-always-ensure t) +#+END_SRC + +** Org + +Phew, I can finally introduce Org mode! I am so *excited*. + +#+NAME: org +#+BEGIN_SRC emacs-lisp +(setq org-hide-emphasis-markers t) +(setq org-startup-indented t) +(setq org-directory "~/org") + +(font-lock-add-keywords 'org-mode + '(("^ *\\([-]\\) " + (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "•")))))) + +(use-package org-bullets + :config + (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))) + +(let* ((variable-tuple + (cond ((x-list-fonts "Liberation Sans") '(:font "Liberation Sans")) + ((x-family-fonts "Sans Serif") '(:family "Sans Serif")) + (nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro.")))) + (base-font-color (face-foreground 'default nil 'default)) + (headline `(:inherit default :weight bold))) + + (custom-theme-set-faces + 'user + `(org-level-8 ((t (,@headline ,@variable-tuple)))) + `(org-level-7 ((t (,@headline ,@variable-tuple)))) + `(org-level-6 ((t (,@headline ,@variable-tuple)))) + `(org-level-5 ((t (,@headline ,@variable-tuple)))) + `(org-level-4 ((t (,@headline ,@variable-tuple :height 1.1)))) + `(org-level-3 ((t (,@headline ,@variable-tuple :height 1.25)))) + `(org-level-2 ((t (,@headline ,@variable-tuple :height 1.5)))) + `(org-level-1 ((t (,@headline ,@variable-tuple :height 1.75)))) + `(org-document-title ((t (,@headline ,@variable-tuple :height 2.0 :underline nil)))))) + +(custom-theme-set-faces + 'user + '(variable-pitch ((t (:family "Liberation Sans")))) + '(fixed-pitch ((t ( :family "Hack"))))) + + + + +(x-list-fonts "Hermit") +#+END_SRC + +- Beautiful bullet lists in Org mode! + +*** Org Agenda + +#+BEGIN_SRC emacs-lisp + +#+END_SRC + +*** Org publish +#+BEGIN_SRC emacs-lisp +(require 'ox-publish) +(setq org-publish-project-alist + '( + ("Safran-VIP-html" + :base-directory "~/org/WORK/Safran/programs/VIP/doc/org/" + :base-extension "org" + :publishing-directory "~/org/WORK/Safran/programs/VIP/doc/wiki/" + :recursive t + :publishing-function org-html-publish-to-html + :auto-preamble t + :auto-sitemap t + :sitemap-title "" ) + + ("Safran-VIP-static" + :base-directory "~/org/WORK/Safran/programs/VIP/doc/org/" + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|mp4\\|ogg\\|swf" + :publishing-directory "~/org/WORK/Safran/programs/VIP/doc/wiki/" + :recursive t + :publishing-function org-publish-attachment ) + + ("Safran-VIP-all" + :components ("Safran-VIP-html" "Safran-VIP-static")) + + ("Safran-MA700-html" + :base-directory "~/org/WORK/Safran/programs/MA700/doc/org/" + :base-extension "org" + :publishing-directory "~/org/WORK/Safran/programs/MA700/doc/wiki/" + :recursive t + :publishing-function org-html-publish-to-html + :auto-preamble t + :auto-sitemap t + :sitemap-title "" ) + + ("Safran-MA700-static" + :base-directory "~/org/WORK/Safran/programs/MA700/doc/org/" + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|mp4\\|ogg\\|swf" + :publishing-directory "~/org/WORK/Safran/programs/MA700/doc/wiki/" + :recursive t + :publishing-function org-publish-attachment ) + + ("Safran-MA700-all" + :components ("Safran-MA700-html" "Safran-MA700-static")))) + + (add-to-list 'org-latex-packages-alist '("table" "xcolor" + t ("pdflatex"))) + (add-to-list 'org-latex-packages-alist '("AUTO" "babel" + t ("pdflatex"))) + (add-to-list 'org-latex-packages-alist '("AUTO" "polyglossia" + t ("xelatex" "lualatex"))) +#+END_SRC + + +** ibuffer-sidebar + +#+BEGIN_SRC emacs-lisp +(use-package ibuffer-sidebar + :commands (ibuffer-sidebar-toggle-sidebar)) +#+END_SRC + +** Which-key + +#+BEGIN_SRC emacs-lisp +(use-package which-key +:init +(which-key-mode) +:config +;; (setq which-key-idle-delay 1000) +;; (setq which-key-idle-secondary-delay 0.05) +;; (setq which-key-show-early-on-C-h t) +) +#+END_SRC + +** Ivy + +Auto completion. + +#+BEGIN_SRC emacs-lisp + (use-package ivy + :config + (ivy-mode t) + (setq ivy-use-virtual-buffers t + ivy-count-format "%d/%d " + enable-recursive-minibuffers t)) + + (use-package ivy-hydra) + (setq ivy-initial-inputs-alist nil) + (use-package ivy-hydra) +#+END_SRC + +*** Counsel + + Wonderful counsellor! + + #+BEGIN_SRC emacs-lisp + (use-package counsel + :bind ("M-x" . counsel-M-x) + :config (counsel-mode)) + +(global-set-key (kbd "C-f") 'counsel-grep-or-swiper) +(global-set-key (kbd "C-F") 'counsel-find-file) + #+END_SRC + +*** Swiper + +#+BEGIN_SRC emacs-lisp + (use-package swiper + :bind (("C-f" . counsel-grep-or-swiper))) +#+END_SRC + +** Ido + +# #+BEGIN_SRC emacs-lisp +# (setq ido-enable-flex-matching t) +# (setq ido-everywhere t) +# (ido-mode 1) +# #+END_SRC + +** Company + + #+NAME: company + #+BEGIN_SRC emacs-lisp + (use-package company + :config + (add-hook 'after-init-hook 'global-company-mode)) + #+END_SRC + +** Flycheck + + #+NAME: flycheck + #+BEGIN_SRC emacs-lisp +(use-package flycheck + :init (global-flycheck-mode)) + #+END_SRC + +** Magit + +#+BEGIN_SRC emacs-lisp + (use-package magit + :bind ("C-c g" . magit-status)) +#+END_SRC + +** PDF-tools + +#+BEGIN_SRC emacs-lisp +(use-package pdf-tools + :config + (pdf-loader-install)) +#+END_SRC + +* Cosmetics + +** Faces & cursors + +In order to imitate other modern text editors, we'll resort to a blinking bar +cursor. + +*** Default cursor + +#+BEGIN_SRC emacs-lisp +(setq-default cursor-type (quote bar)) +#+END_SRC + +*** Default faces + +Fixed-pitch and variable-pitch fonts will be used intelligently in all text +modes. + +#+BEGIN_SRC emacs-lisp + (use-package mixed-pitch + :hook + ;; If you want it in all text modes: + (text-mode . mixed-pitch-mode)) +#+END_SRC + +** All the icons + +#+BEGIN_SRC emacs-lisp +(use-package all-the-icons) +#+END_SRC + +** Theme + +#+BEGIN_SRC emacs-lisp +;; (use-package zenburn-theme +;; :config +;; (load-theme 'zenburn) +;; ) +#+END_SRC + +** Transparency + +#+BEGIN_SRC emacs-lisp +(add-to-list 'default-frame-alist '(alpha . (90 . 50))) +#+END_SRC + +** Scrollbars + +#+BEGIN_SRC emacs-lisp +(set-window-scroll-bars (minibuffer-window) nil nil) +#+END_SRC + +* Editing preferences + +#+BEGIN_SRC emacs-lisp +(setq-default fill-column 79) +(defalias 'yes-or-no-p 'y-or-n-p) +#+END_SRC + +#+BEGIN_SRC emacs-lisp + (use-package smartparens + :config + (add-hook 'prog-mode-hook 'smartparens-mode)) + + (use-package rainbow-delimiters + :config + (add-hook 'prog-mode-hook 'rainbow-delimiters-mode)) +#+END_SRC diff --git a/blendoit/init-blendoit.pdf b/blendoit/init-blendoit.pdf new file mode 100644 index 0000000..96a5f9d Binary files /dev/null and b/blendoit/init-blendoit.pdf differ diff --git a/blendoit/secrets.org b/blendoit/secrets.org new file mode 100644 index 0000000..a6ca895 --- /dev/null +++ b/blendoit/secrets.org @@ -0,0 +1,4 @@ +#+BEGIN_SRC emacs-lisp + (setq user-full-name "Marius Peter" + user-mail-address "blendoit@gmail.com") +#+END_SRC diff --git a/init.el b/init.el index 3b5321f..6793c63 100644 --- a/init.el +++ b/init.el @@ -1,11 +1,6 @@ -(require 'package) -(package-initialize) +;;; init.el -;; Load settings created automatically by GNU Emacs Custom. -;; (For example, any clickable option/toggle is saved here.) -;; Useful for fooling around with A-x customize-group . -(setq custom-file "~/.emacs.d/init_emacs.el") -(load custom-file) - -;; Load settings I manually created for GNU Emacs -(load "~/.emacs.d/init_blendoit.el") +;; Load literate configuration file I created for GNU Emacs. +;; The ultimate goal is to transition most of the custom settings +;; to explicitly defined customisations. +(org-babel-load-file "~/.emacs.d/blendoit/init-blendoit.org") diff --git a/init_blendoit.el b/init_blendoit.el deleted file mode 100644 index 09ce224..0000000 --- a/init_blendoit.el +++ /dev/null @@ -1,49 +0,0 @@ -(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) - -(require 'evil-leader) ;; All hail our evil leader! -(global-evil-leader-mode) ;; The evil leader has gone global... -(load "~/.emacs.d/init_evil-leader-keys.el") ;; My custom evil-leader key bindings. -(require 'evil) ;; Let's follow in our leader's footsteps and become evil ourselves. -(evil-mode 1) - -;; TODO -;; Change color of mode line upon entering and leaving evil-mode. -;;(setq original-background (face-attribute 'mode-line :background)) -;;(setq normal-state-background "#FF4F00") -;;(if evil-mode -;; (set-face-attribute 'mode-line nil :background normal-state-background) -;; '(set-face-attribute 'mode-line nil :background original-background) -;; ) - -;;(setq original-background (face-attribute 'mode-line :background)) -;;(setq normal-state-background "#FF4F00") -;;(add-hook 'evil-normal-state-entry-hook -;; (lambda () -;; (set-face-attribute 'mode-line nil :background normal-state-background))) -;;(add-hook 'evil-normal-state-exit-hook -;; (lambda () -;; (set-face-attribute 'mode-line nil :background original-background))) - -;; Interactively Do Things - add powerful features to common Emacs commands. -(setq ido-enable-flex-matching t) -(setq ido-everywhere t) -(ido-mode 1) - -;; Zoom in/out of selected buffer -(global-set-key [C-S-mouse-4] 'text-scale-increase) -(global-set-key [C-S-mouse-5] 'text-scale-decrease) - -;; Backup file locations -(setq backup-directory-alist - `((".*" . ,temporary-file-directory))) -(setq auto-save-file-name-transforms - `((".*" ,temporary-file-directory t))) - -;; Emacs GUI transparency -;;(set-frame-parameter (selected-frame) 'alpha '( . )) -;;(set-frame-parameter (selected-frame) 'alpha ) -(set-frame-parameter (selected-frame) 'alpha '(85 . 50)) -(add-to-list 'default-frame-alist '(alpha . (85 . 50))) - -(load "~/.emacs.d/init_org-mode.el") -(pdf-tools-install) diff --git a/init_emacs.el b/init_emacs.el deleted file mode 100644 index 49b23d2..0000000 --- a/init_emacs.el +++ /dev/null @@ -1,38 +0,0 @@ -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(blink-cursor-mode t) - '(custom-enabled-themes (quote (blendoit-ucla))) - '(custom-safe-themes - (quote - ("c0b9ce02572ae56f7e41b8cc05d878af55c804f42a962274e929b196d010998e" "37d9d29b4be64ce7f3bcee989b5b4e410520c44ed61db200dc80518abdf2de5d" "f3c5904d7b27f967f9bc93ef21757e84752b52a3d091a535e32bca4324c95419" default))) - '(display-line-numbers-type (quote visual)) - '(evil-want-C-w-delete nil) - '(evil-want-C-w-in-emacs-state t) - '(global-display-line-numbers-mode t) - '(package-selected-packages - (quote - (notmuch writeroom-mode pdf-tools org-bullets magit latex-preview-pane evil-leader))) - '(show-paren-mode t) - '(tool-bar-mode nil) - '(writeroom-global-effects - (quote - (writeroom-set-fullscreen writeroom-set-menu-bar-lines writeroom-set-tool-bar-lines writeroom-set-vertical-scroll-bars writeroom-set-bottom-divider-width))) - '(writeroom-restore-window-config t)) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(default ((t (:family "Hack" :foundry "SRC" :slant normal :weight normal :height 174 :width normal)))) - '(org-document-title ((t (:inherit default :weight bold :foreground "white" :family "Verdana" :height 2.0 :underline nil)))) - '(org-level-1 ((t (:inherit default :weight bold :foreground "white" :family "Verdana" :height 1.75)))) - '(org-level-2 ((t (:inherit default :weight bold :foreground "white" :family "Verdana" :height 1.5)))) - '(org-level-3 ((t (:inherit default :weight bold :foreground "white" :family "Verdana" :height 1.25)))) - '(org-level-4 ((t (:inherit default :weight bold :foreground "white" :family "Verdana" :height 1.1)))) - '(org-level-5 ((t (:inherit default :weight bold :foreground "white" :family "Verdana")))) - '(org-level-6 ((t (:inherit default :weight bold :foreground "white" :family "Verdana")))) - '(org-level-7 ((t (:inherit default :weight bold :foreground "white" :family "Verdana")))) - '(org-level-8 ((t (:inherit default :weight bold :foreground "white" :family "Verdana"))))) diff --git a/init_evil-leader-keys.el b/init_evil-leader-keys.el deleted file mode 100644 index 0f31bda..0000000 --- a/init_evil-leader-keys.el +++ /dev/null @@ -1,16 +0,0 @@ -;; All hail our evil leader! - -;; prefix to the following commands in evil-mode -(evil-leader/set-leader ";") - -(evil-leader/set-key - "e" 'ido-find-file ;; edit a file (TAB steals a buffer for autocompletion) - "f" 'writeroom-mode ;; focus the current buffer - "w" 'save-buffer ;; write - "r" 'eval-buffer ;; reload - "b" 'ido-switch-buffer ;; buffer switch (RET switches to last buffer) - "q" 'save-buffers-kill-terminal ;; quit - "k" 'kill-buffer-and-window ;; kill - "x" 'shell ;; execute - "g" 'magit-status ;; git - "d" 'ido-dired) ;; directory (RET opens current directory) diff --git a/init_org-mode.el b/init_org-mode.el deleted file mode 100644 index 5176abc..0000000 --- a/init_org-mode.el +++ /dev/null @@ -1,29 +0,0 @@ -;; Org-mode bullets use UTF-8 bullets -(require 'org-bullets) -(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) - -;; Long lines will flow and adjust to window. -(add-hook 'org-mode-hook 'visual-line-mode) -;; Hide characters that make text bold/italic/underlined -(setq org-hide-emphasis-markers t) - -;; org-mode fonts -(let* ((variable-tuple - (cond ;;((x-list-fonts "Source Sans Pro") '(:font "Source Sans Pro")) - ;;((x-list-fonts "Lucida Grande") '(:font "Lucida Grande")) - ((x-list-fonts "Verdana") '(:font "Verdana")) - (nil (warn "Cannot find a Sans Serif Font. Install Source Sans Pro.")))) - (base-font-color (face-foreground 'default nil 'default)) - (headline `(:inherit default :weight bold :foreground ,base-font-color))) - - (custom-theme-set-faces - 'user - `(org-level-8 ((t (,@headline ,@variable-tuple)))) - `(org-level-7 ((t (,@headline ,@variable-tuple)))) - `(org-level-6 ((t (,@headline ,@variable-tuple)))) - `(org-level-5 ((t (,@headline ,@variable-tuple)))) - `(org-level-4 ((t (,@headline ,@variable-tuple :height 1.1)))) - `(org-level-3 ((t (,@headline ,@variable-tuple :height 1.25)))) - `(org-level-2 ((t (,@headline ,@variable-tuple :height 1.5)))) - `(org-level-1 ((t (,@headline ,@variable-tuple :height 1.75)))) - `(org-document-title ((t (,@headline ,@variable-tuple :height 2.0 :underline nil)))))) -- cgit v1.2.3