From a1c59cfcf4c8ac4da3c7a5f1ab4f5c923faaadec Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 6 Nov 2015 15:22:08 +0100 Subject: [PATCH] Clean up config --- config/erc.el | 6 ------ config/fonts.el | 2 ++ config/general.el | 26 +++----------------------- config/yas.el | 7 ++++--- emacs | 5 ++--- 5 files changed, 11 insertions(+), 35 deletions(-) create mode 100644 config/fonts.el diff --git a/config/erc.el b/config/erc.el index c7268ca..7fc1ad3 100644 --- a/config/erc.el +++ b/config/erc.el @@ -1,12 +1,6 @@ (message "Starting ERC IRC Client") (require 'erc) -;; Colorfull nicknames -(and - (require 'erc-highlight-nicknames) - (add-to-list 'erc-modules 'highlight-nicknames) - (erc-update-modules)) - (setq erc-autojoin-channels-alist ; Uni Erlangen / IRCnet '(("uni-erlangen.de" diff --git a/config/fonts.el b/config/fonts.el new file mode 100644 index 0000000..00ade02 --- /dev/null +++ b/config/fonts.el @@ -0,0 +1,2 @@ +(add-to-list 'default-frame-alist '(font . "Source Code Pro-9")) +(set-face-attribute 'default t :font "Source Code Pro-9") diff --git a/config/general.el b/config/general.el index 1a80a6d..969afe7 100644 --- a/config/general.el +++ b/config/general.el @@ -30,30 +30,19 @@ (indent-region (point-min) (point-max) nil) (untabify (point-min) (point-max))) -(when (>= emacs-major-version 23) - (global-linum-mode 1) - (setq linum-format "%3d") - (modify-all-frames-parameters - '((font . "DejaVu Sans Mono-9")))) - -;; Django template mode -(when (locate-library "django-html-mode") - (require 'django-html-mode) - (message "Django HTML Mode available")) +(global-linum-mode 1) +(setq linum-format "%3d") ;; Some file extensions autoloading (add-to-list 'auto-mode-alist '("\\.mdn$" . markdown-mode)) -(add-to-list 'auto-mode-alist '("\\.dtpl$" . django-html-mode)) -(setq browse-url-generic-program (executable-find "midori") +(setq browse-url-generic-program (executable-find "conkeror") browse-url-browser-function 'browse-url-generic) (global-set-key (kbd "C-x d") 'dired) (set-input-method "german-postfix") -(load-file "/home/christoph/.emacs.d/rudel/rudel-loaddefs.el") - (winner-mode) (defun paste-x-selection () @@ -63,12 +52,3 @@ (yank))) (global-set-key (kbd "") 'paste-x-selection) (global-set-key (kbd "C-S-") 'paste-x-selection) - - -(defun paste-x-selection () - (interactive) - (let ((x-select-enable-primary t) - (x-select-enable-clipboard nil)) - (yank))) -(global-set-key (kbd "") 'paste-x-selection) -(global-set-key (kbd "C-S-") 'paste-x-selection) diff --git a/config/yas.el b/config/yas.el index e309c49..2eb1e1f 100644 --- a/config/yas.el +++ b/config/yas.el @@ -1,5 +1,6 @@ (require 'yasnippet) -(yas/initialize) -(setq yas/root-directory '("~/proj/snipets")) -(mapc 'yas/load-directory yas/root-directory) +(setq yas-snippet-dirs '("~/proj/snippets")) + +(yas-global-mode 1) + diff --git a/emacs b/emacs index 8e678e7..f0dab4b 100644 --- a/emacs +++ b/emacs @@ -9,17 +9,16 @@ (setq custom-file "~/.emacs.d/emacs-custom.el") (load custom-file) -(dolist (file-to-load '("yas.el" +(dolist (file-to-load '("fonts.el" + "yas.el" "python.el" "c.el" "irony.el" "org.el" - "vamos.el" "slime.el" "whitespace.el" "general.el" "jabber.el" "erc.el" - "identica.el" "pastebin.el")) (load-file (concat emacs-private-config file-to-load))) -- 2.39.5