From 7dc3ebbcc158ba900e11a9398635ef840e389a9e Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 27 Nov 2012 11:12:17 +0100 Subject: .emacs.d/init.el --- .emacs.d/init.el | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ee23d0d..dbf4e69 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -3,11 +3,6 @@ ;;; Commentary: ;; Does so much and changes so often -(require 'geiser-install) -(require 'iso-transl) -(require 'newcomment) -(require 'uniquify) -(require 'w3m-load) ;;; Code: @@ -20,6 +15,11 @@ (normal-top-level-add-subdirs-to-load-path))) '("/usr/share/emacs/site-lisp" "~/.emacs.d/site-lisp"))) +(require 'geiser-install) +(require 'iso-transl) +(require 'newcomment) +(require 'uniquify) +(require 'w3m-load) (require 'ext) (require 'oni) @@ -158,7 +158,8 @@ (arglist-close . 0) (inline-open . 0) (brace-list-open . +) - (topmost-intro-cont first c-lineup-topmost-intro-cont c-lineup-gnu-DEFUN-intro-cont))) + (topmost-intro-cont first c-lineup-topmost-intro-cont + c-lineup-gnu-DEFUN-intro-cont))) (setq comment-auto-fill-only-comments t) (setq custom-file "~/.emacs.d/custom.el") (setq custom-theme-directory "~/.emacs.d/themes") @@ -168,7 +169,7 @@ (vertical-scroll-bars . nil) (menu-bar-lines . nil) (tool-bar-lines . nil) - (font . "Monaco:pixelsize=16"))) + (font . "monaco-12"))) (setq emms-source-file-default-directory "/mnt/music/") (setq erc-autojoin-channels-alist '(("freenode.net" "#ninthfloor" "#emacs" "#dispass"))) @@ -285,6 +286,7 @@ (setq use-dialog-box nil) (setq user-full-name "Tom Willemsen") (setq user-mail-address "tom@ryuslash.org") +(setq w3m-fill-column 72) (setq window-combination-resize t) (setq yas-prompt-functions '(yas-ido-prompt)) @@ -318,6 +320,7 @@ (add-hook 'term-mode-hook 'oni:term-mode-func) (add-hook 'texinfo-mode-hook 'oni:texinfo-mode-func) (add-hook 'write-file-hooks 'oni:write-file-func) +(add-hook 'yas-minor-mode-hook 'oni:yas-minor-mode-func) (global-set-key (kbd "'") 'oni:self-insert-dwim) (global-set-key (kbd "") 'emms-next) @@ -361,7 +364,8 @@ (add-to-list 'auto-mode-alist '("\\.jl$" . sawfish-mode)) (add-to-list 'auto-mode-alist '("\\.js\\(on\\)?$" . js2-mode)) -(add-to-list 'auto-mode-alist '("\\.m\\(ark\\)?d\\(?:o?wn\\)?$" . markdown-mode)) +(add-to-list 'auto-mode-alist + '("\\.m\\(ark\\)?d\\(?:o?wn\\)?$" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.php[345]?$" . php-mode)) (add-to-list 'auto-mode-alist '("\\.po\\'\\|\\.po\\." . po-mode)) (add-to-list 'auto-mode-alist '("\\.tpl$" . html-mode)) @@ -370,10 +374,12 @@ (add-to-list 'debug-ignored-errors "^Can't shift all lines enough") -(add-to-list 'display-buffer-alist - '("^\\*magit: .*\\*$" . ((display-buffer-same-window . nil)))) -(add-to-list 'display-buffer-alist - '("^\\*git-project-list\\*$" . ((git-project-show-window . nil)))) +(add-to-list + 'display-buffer-alist + '("^\\*magit: .*\\*$" . ((display-buffer-same-window . nil)))) +(add-to-list + 'display-buffer-alist + '("^\\*git-project-list\\*$" . ((git-project-show-window . nil)))) (delete " " mode-line-format) -- cgit v1.2.3-54-g00ecf From 19524caf26e674c7d24180edf5b2d45515148f1a Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 27 Nov 2012 11:12:33 +0100 Subject: .emacs.d/site-lisp/metalexpress.el --- .emacs.d/site-lisp/metalexpress.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/metalexpress.el b/.emacs.d/site-lisp/metalexpress.el index 9d57c19..ef67d83 100644 --- a/.emacs.d/site-lisp/metalexpress.el +++ b/.emacs.d/site-lisp/metalexpress.el @@ -32,13 +32,18 @@ "http://usa7-vn.mixstream.net/listen/8248.m3u" "The URL of the Metal Express Radio stream.") +(defun mer-proc-filter (proc string) + (when (string-match "^ICY Info: StreamTitle='\\(.*\\)';StreamUrl='';" + string) + (message (match-string 1 string)))) + ;;;###autoload (defun metal-express-radio-start () "Start listening to Metal Express Radio." (interactive) - (async-shell-command - (concat "mplayer " metal-express-radio-playlist-url) - "*Metal Express Radio*")) + (let ((proc (start-process "metalexpress" "*Metal Express Radio*" + "mplayer" metal-express-radio-playlist-url))) + (set-process-filter proc #'mer-proc-filter))) (defun metal-express-radio-stop () "Stop listening to Metal Express Radio." -- cgit v1.2.3-54-g00ecf From 92eba9c8697c65fa3912b0379322e3370ecfb678 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 27 Nov 2012 11:12:59 +0100 Subject: .emacs.d/site-lisp/oni.el --- .emacs.d/site-lisp/oni.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el index 286f19b..f35249d 100644 --- a/.emacs.d/site-lisp/oni.el +++ b/.emacs.d/site-lisp/oni.el @@ -228,7 +228,8 @@ If COUNT has been specified indent by that much, otherwise look at (visual-line-mode) (setq mode-line-format (append (cddr jabber-chat-header-line-format) '(global-mode-string)) - header-line-format nil)) + header-line-format nil + wrap-prefix (make-string 8 ?\ ))) (defun oni:jabber-roster-mode-func () "Function for `jabber-roster-mode-hook'." @@ -278,7 +279,7 @@ If COUNT has been specified indent by that much, otherwise look at to add yasnippet's expand function to hippie-expand." (require other) (add-to-list 'hippie-expand-try-functions-list - 'yas/hippie-try-expand)) + 'yas/hippie-try-expand t)) (defun oni:lua-mode-func() "Function for `lua-mode-hook'." @@ -609,6 +610,11 @@ for easy selection." "Function for `write-file-hooks'." (time-stamp)) +(defun oni:yas-minor-mode-func () + "Function for `yas-minor-mode-hook'." + (define-key yas-minor-mode-map (kbd "TAB") nil) + (define-key yas-minor-mode-map [(tab)] nil)) + (define-skeleton html-tag "Testing creation of an html tag" "Tagname:" -- cgit v1.2.3-54-g00ecf From b7afba2c86112bdaa4604f517481b9ba397ed085 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 27 Nov 2012 11:13:24 +0100 Subject: .emacs.d/site-lisp/org-init.el --- .emacs.d/site-lisp/org-init.el | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/org-init.el b/.emacs.d/site-lisp/org-init.el index 6f28432..cccf659 100644 --- a/.emacs.d/site-lisp/org-init.el +++ b/.emacs.d/site-lisp/org-init.el @@ -34,24 +34,13 @@ '(org-crypt-use-before-save-magic)) (setq org-agenda-custom-commands - '(("pa" "Avandu" tags-todo "slug=\"avandu\"") - ("pb" "Blog" tags-todo "slug=\"blog\"") - ("pc" "Configuration" tags-todo "slug=\"configuration\"") - ("pd" "dispass.el" tags-todo "slug=\"dispass.el\"") - ("pD" "DVDroid" tags-todo "slug=\"dvdroid\"") - ("pe" "Eye on Manga" tags-todo "slug=\"eye-on-manga\"") - ("pG" "gDisPass" tags-todo "slug=\"gdispass\"") - ("pg" "gitto" tags-todo "slug=\"gitto\"") - ("pi" "Ideas" tags-todo "slug=\"ideas\"") - ("pM" "Maintenance" tags-todo "slug=\"maintenance\"") - ("pme" "Metal Express Radio.el" tags-todo - "slug=\"metal-express-radio.el\"") - ("pmo" "Mode Icons" tags-todo "slug=\"mode-icons\"") - ("pmy1" "myAethon" tags-todo "slug=\"myaethon\"") - ("pmy2" "myAethon2" tags-todo "slug=\"myaethon2\"") - ("ps" "Sawfish Naquadah theme" tags-todo - "slug=\"sawfish-naquadah-theme\"") - ("w" "Work todo." tags-todo "work"))) + '(("w" "Work todo." tags-todo "work"))) +(setq org-agenda-prefix-format + '((agenda . " %i %-12:c%?-12t% s") + (timeline . " % s") + (todo . " %i %-12:c %(concat \"[ \"(org-format-outline-path (org-get-outline-path)) \" ]\") ") + (tags . " %i %-12:c") + (search . " %i %-12:c"))) (setq org-agenda-sorting-strategy '((agenda habit-down time-up priority-down category-keep) (todo priority-down category-keep) @@ -85,6 +74,7 @@ ,(concat org-directory "/misc/contacts.org") ,(concat org-directory "/misc/bookmarks.org")) org-agenda-files)) +(setq org-agenda-show-outline-path nil) (setq org-agenda-todo-ignore-deadlines 'far) (setq org-agenda-todo-ignore-scheduled t) (setq org-default-notes-file (concat org-directory "/org")) -- cgit v1.2.3-54-g00ecf From bb9e6aab9d1bd89b12d6bcd418c969ac97c86d7d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 28 Nov 2012 10:13:49 +0100 Subject: .emacs.d/site-lisp/oni.el --- .emacs.d/site-lisp/oni.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el index f35249d..1c99555 100644 --- a/.emacs.d/site-lisp/oni.el +++ b/.emacs.d/site-lisp/oni.el @@ -104,6 +104,13 @@ DOT are intentionally being skipped." (local-set-key "\C-j" 'oni:newline-and-indent) (rainbow-mode)) +(defun oni:current-jabber-status () + "Return a string representing the current jabber status." + (or (and (not *jabber-connected*) "Offline") + (and (not (string= *jabber-current-status* "")) + *jabber-current-status*) + "Online")) + (defun oni:diary-display-func () "Function for `diary-display-hook'." (diary-fancy-display)) -- cgit v1.2.3-54-g00ecf From b229154af604f297c8d903649023f70fe8388613 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 28 Nov 2012 10:14:25 +0100 Subject: .emacs.d/site-lisp/org-init.el --- .emacs.d/site-lisp/org-init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/org-init.el b/.emacs.d/site-lisp/org-init.el index cccf659..b8a41b8 100644 --- a/.emacs.d/site-lisp/org-init.el +++ b/.emacs.d/site-lisp/org-init.el @@ -39,7 +39,7 @@ '((agenda . " %i %-12:c%?-12t% s") (timeline . " % s") (todo . " %i %-12:c %(concat \"[ \"(org-format-outline-path (org-get-outline-path)) \" ]\") ") - (tags . " %i %-12:c") + (tags . " %i %-12:c %(concat \"[ \"(org-format-outline-path (org-get-outline-path)) \" ]\") ") (search . " %i %-12:c"))) (setq org-agenda-sorting-strategy '((agenda habit-down time-up priority-down category-keep) -- cgit v1.2.3-54-g00ecf From b6940d55f1897f2307193143a8a0909f8f40cce6 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 17:41:23 +0100 Subject: .emacs.d/eshell/alias --- .emacs.d/eshell/alias | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/eshell/alias b/.emacs.d/eshell/alias index 940108a..d98e2f5 100644 --- a/.emacs.d/eshell/alias +++ b/.emacs.d/eshell/alias @@ -1,8 +1,9 @@ -alias git git --no-pager $* -alias rm rm -v $* -alias sudo *sudo $* -alias ncmpcpp ansi-term ncmpcpp ncmpcpp -alias listen eshell-exec-visual mplayer http://usa7-vn.mixstream.net/listen/8248.pls -alias o find-file $1 -alias d dired $1 +alias hgit hgit --no-pager $* alias newsbeuter ansi-term newsbeuter newsbeuter +alias d dired $1 +alias o find-file $1 +alias listen eshell-exec-visual mplayer http://usa7-vn.mixstream.net/listen/8248.pls +alias ncmpcpp ansi-term ncmpcpp ncmpcpp +alias sudo *sudo $* +alias rm rm -v $* +alias git git --no-pager $* -- cgit v1.2.3-54-g00ecf From ff77b0c0d956f51930659e8b003659271e12cb0d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 17:41:57 +0100 Subject: .emacs.d/init.el --- .emacs.d/init.el | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index dbf4e69..3763c4f 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -13,7 +13,14 @@ (add-to-list 'load-path directory) (let ((default-directory directory)) (normal-top-level-add-subdirs-to-load-path))) - '("/usr/share/emacs/site-lisp" "~/.emacs.d/site-lisp"))) + '("/usr/share/emacs/site-lisp" "~/.emacs.d/site-lisp" + "/usr/local/emacs/share/emacs/site-lisp")) + (mapc #'(lambda (directory) + (add-to-list 'load-path directory) + (let ((loaddefs (concat directory "/loaddefs.el"))) + (when (file-exists-p loaddefs) + (load loaddefs)))) + '("~/var/src/emacs/dispass.el" "~/var/src/emacs/mode-icons"))) (require 'geiser-install) (require 'iso-transl) @@ -60,27 +67,22 @@ "Face for the supposedly empty line in commit messages." :group 'local) -(eval-after-load "ebuff-menu" - '(define-key electric-buffer-menu-mode-map - (kbd "C-s") 'isearch-forward)) - (eval-after-load "em-term" - '(add-to-list 'eshell-visual-commands - "unison")) + '(add-to-list 'eshell-visual-commands "unison")) (eval-after-load "emms-source-file" - '(progn - (require 'emms-setup) + '(progn + (require 'emms-setup) + (require 'emms-player-mpd) - (emms-standard) - (require 'emms-player-mpd) + (emms-standard) - (setq emms-player-mpd-server-name "localhost") - (setq emms-player-mpd-server-port "6600") + (add-to-list 'emms-info-functions 'emms-info-mpd) + (add-to-list 'emms-player-list 'emms-player-mpd) - (add-to-list 'emms-info-functions 'emms-info-mpd) - (add-to-list 'emms-player-list 'emms-player-mpd) - (setq emms-player-mpd-music-directory "/mnt/music/mp3"))) + (setq emms-player-mpd-server-name "localhost") + (setq emms-player-mpd-server-port "6600") + (setq emms-player-mpd-music-directory "/mnt/music/mp3"))) (eval-after-load "flymake" '(progn @@ -109,8 +111,8 @@ (eval-after-load "jabber" '(remove-hook 'jabber-alert-presence-hooks 'jabber-presence-echo)) -(eval-after-load "mu4e" - '(require 'mu4e-init)) +(eval-after-load "newst-treeview" + '(require 'newsticker-init)) (eval-after-load "org" '(require 'org-init)) @@ -211,6 +213,8 @@ "line too long" "at least two spaces before inline comment" "trailing whitespace" + "imported but unused" + "Unused import" "too many blank lines")))) (setq flymake-log-file-name (expand-file-name "~/.emacs.d/flymake.log")) (setq flymake-log-level 0) @@ -218,7 +222,6 @@ (eval-when-compile (regexp-opt '("warning" "Warning" - "imported but unused" "redefinition of unused" "Redefining built-in" "Redefining name" @@ -290,6 +293,7 @@ (setq window-combination-resize t) (setq yas-prompt-functions '(yas-ido-prompt)) +(add-hook 'after-change-major-mode-hook 'set-current-mode-icon) (add-hook 'after-save-hook 'oni:after-save-func t) (add-hook 'before-save-hook 'oni:before-save-func) (add-hook 'c-mode-hook 'oni:c-mode-func) @@ -376,7 +380,7 @@ (add-to-list 'display-buffer-alist - '("^\\*magit: .*\\*$" . ((display-buffer-same-window . nil)))) + '(".*" . ((display-buffer-same-window . nil)))) (add-to-list 'display-buffer-alist '("^\\*git-project-list\\*$" . ((git-project-show-window . nil)))) -- cgit v1.2.3-54-g00ecf From 272c8f72380cf7c5355df5735d951cc97ecb9ffc Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 17:44:57 +0100 Subject: .emacs.d/site-lisp/metalexpress.el --- .emacs.d/site-lisp/metalexpress.el | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/metalexpress.el b/.emacs.d/site-lisp/metalexpress.el index ef67d83..2f77638 100644 --- a/.emacs.d/site-lisp/metalexpress.el +++ b/.emacs.d/site-lisp/metalexpress.el @@ -30,12 +30,32 @@ (defcustom metal-express-radio-playlist-url "http://usa7-vn.mixstream.net/listen/8248.m3u" - "The URL of the Metal Express Radio stream.") + "The URL of the Metal Express Radio stream." + :group 'metal-express-radio + :type 'string) + +(defcustom metal-express-radio-song-changed-hook nil + "Hook run when the currently playing song changes." + :type 'hook + :group 'metal-express-radio) + +(defvar metal-express-radio-currently-playing nil + "The currently playing song.") (defun mer-proc-filter (proc string) (when (string-match "^ICY Info: StreamTitle='\\(.*\\)';StreamUrl='';" string) - (message (match-string 1 string)))) + (setq metal-express-radio-currently-playing (match-string 1 string)) + (apply 'run-hooks metal-express-radio-song-changed-hook))) + +(defun metal-express-radio-echo-currently-playing () + (interactive) + (message metal-express-radio-currently-playing)) + +(defun metal-express-radio-notify () + (interactive) + (notifications-notify :title "Now playing:" + :body metal-express-radio-currently-playing)) ;;;###autoload (defun metal-express-radio-start () @@ -50,5 +70,10 @@ (interactive) (kill-process (get-buffer-process "*Metal Express Radio*"))) +(add-hook 'metal-express-radio-song-changed-hook + 'metal-express-radio-echo-currently-playing) +(add-hook 'metal-express-radio-song-changed-hook + 'metal-express-radio-notify) + (provide 'metalexpress) ;;; metalexpress.el ends here -- cgit v1.2.3-54-g00ecf From ac510449fc004f0057edebfa749cdfeeec9fae7a Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 17:45:20 +0100 Subject: .emacs.d/site-lisp/oni.el --- .emacs.d/site-lisp/oni.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el index 1c99555..2adf288 100644 --- a/.emacs.d/site-lisp/oni.el +++ b/.emacs.d/site-lisp/oni.el @@ -58,11 +58,9 @@ DOT are intentionally being skipped." "A mailbox map for use with `tmm-prompt'.") (defvar oni:required-packages - '(graphviz-dot-mode htmlize magit rainbow-delimiters - rainbow-mode yasnippet markdown-mode flymake - flymake-cursor pony-mode sauron dispass - expand-region fill-column-indicator - git-auto-commit-mode idomenu magit smex) + '(graphviz-dot-mode htmlize magit rainbow-delimiters rainbow-mode + yasnippet markdown-mode flymake flymake-cursor sauron expand-region + fill-column-indicator git-auto-commit-mode idomenu magit smex) "List of all the packages I have (want) installed.") (defun oni:after-save-func () @@ -71,7 +69,8 @@ DOT are intentionally being skipped." (executable-make-buffer-file-executable-if-script-p) (let ((dom-dir (locate-dominating-file (buffer-file-name) "Makefile"))) (when dom-dir - (shell-command (concat "make -C " dom-dir " TAGS >/dev/null 2>&1"))))) + (shell-command + (concat "make -C " dom-dir " TAGS >/dev/null 2>&1"))))) (defun oni:before-save-func () "Function for `before-save-hook'." -- cgit v1.2.3-54-g00ecf From f7c35c3526a3f1b42c00ee9ebe2cdf083698ac71 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 17:45:43 +0100 Subject: .emacs.d/site-lisp/org-init.el --- .emacs.d/site-lisp/org-init.el | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/org-init.el b/.emacs.d/site-lisp/org-init.el index b8a41b8..3bacaad 100644 --- a/.emacs.d/site-lisp/org-init.el +++ b/.emacs.d/site-lisp/org-init.el @@ -50,22 +50,8 @@ (setq org-capture-templates '(("t" "Task" entry (file "~/documents/org/tasks") "* TODO %?") - ("h" "Habit" entry (file "") - (concat "* TODO %^{Description}\n" - " SCHEDULED: %^T\n" - " :PROPERTIES:\n" - " :STYLE: habit\n" - " :END:") - :immediate-finish t) - ("l" "Log" entry (file+headline "" "notes") - (concat "* %n %<%d-%m-%Y %H:%M:%S>\n" - " %a\n\n" - " %?") - :prepend t :empty-lines 1) - ("a" "Appointment" entry (file+headline "" "appointments") - "* %^{Description} %^T" :immediate-finish t) - ("b" "Bookmark" entry (file "~/documents/org/misc/bookmarks.org") - "* %c\n\n %:initial"))) + ("T" "Linked task" entry (file "~/documents/org/tasks") + "* TODO %?\n\n %a"))) (setq org-contacts-files '("~/documents/org/misc/contacts.org")) (setq org-directory (expand-file-name "~/documents/org")) (setq org-agenda-files -- cgit v1.2.3-54-g00ecf From 77c8d5e8650e4c22738c1b1cb92edb384a02df75 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 17:51:55 +0100 Subject: .emacs.d/site-lisp/newsticker-init.el --- .emacs.d/site-lisp/newsticker-init.el | 101 ++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 .emacs.d/site-lisp/newsticker-init.el (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/newsticker-init.el b/.emacs.d/site-lisp/newsticker-init.el new file mode 100644 index 0000000..da166d1 --- /dev/null +++ b/.emacs.d/site-lisp/newsticker-init.el @@ -0,0 +1,101 @@ +(defmacro reddit-feed (name) + "Return a reddit feed url" + (concat "http://www.reddit.com/r/" name "/new/.rss?sort=new")) + +(setq newsticker-automatically-mark-items-as-old nil) +(setq newsticker-html-renderer 'w3m-region) +(setq newsticker-obsolete-item-max-age 604800) +(setq newsticker-url-list + `(("Irreal" + "http://irreal.org/blog/?feed=rss2" nil nil nil) + ("Arch Linux - Keeping it Simple" + ,(reddit-feed "archlinux") nil nil nil) + ("The C programming language" + ,(reddit-feed "c_language") nil nil nil) + ("C" + ,(reddit-feed "C_Programming") nil nil nil) + ("coding" + ,(reddit-feed "coding") nil nil nil) + ("Command Line" + ,(reddit-feed "commandline") nil nil nil) + ("Django" + ,(reddit-feed "django") nil nil nil) + ("M-x emacs-reddit" + ,(reddit-feed "emacs") nil nil nil) + ("git" + ,(reddit-feed "git") nil nil nil) + ("JavaScript" + ,(reddit-feed "javascript") nil nil nil) + ("r/Linux" + ,(reddit-feed "linux") nil nil nil) + ("Linux Gaming on Reddit" + ,(reddit-feed "linux_gaming") nil nil nil) + ("Lisp" + ,(reddit-feed "lisp") nil nil nil) + ("Open Source on Reddit" + ,(reddit-feed "opensource") nil nil nil) + ("PHP: The latest news in the PHP world" + ,(reddit-feed "PHP") nil nil nil) + ("programming" + ,(reddit-feed "programming") nil nil nil) + ("Python" + ,(reddit-feed "Python") nil nil nil) + ("Scheme Programming Language articles" + ,(reddit-feed "scheme") nil nil nil) + ("The Wayland Display Server" + ,(reddit-feed "wayland") nil nil nil) + ("Identity at Mozilla" + "http://identity.mozilla.com/rss" nil nil nil) + ("jd:/dev/blog" + "http://julien.danjou.info/blog/index.xml" nil nil nil) + ("KaKaRoTo's Blog" + "http://kakaroto.homelinux.net/feed/" nil nil nil) + ("Awhan Patnaik" + "http://awhan.wordpress.com/feed/" nil nil nil) + ("The Gitorious Blog" + "http://blog.gitorious.org/feed/" nil nil nil) + ;; ("Dieter on the web" + ;; "http://dieter.plaetinck.be/index.rss" nil nil nil) + ("Public Git Hosting - conkeror.git/atom log" + "http://repo.or.cz/w/conkeror.git/atom" nil nil nil) + ("Stevey's Blog Rants" + "http://steve-yegge.blogspot.com/feeds/posts/default" + nil nil nil) + ("Script Tutorials" + "http://www.script-tutorials.com/feed/rss/" nil nil nil) + ("Hacker News" + "http://news.ycombinator.com/rss" nil nil nil) + ("HowtoForge - Linux Howtos and Tutorials -" + "http://www.howtoforge.com/node/feed" nil nil nil) + ("IBM developerWorks : Linux" + "http://www.ibm.com/developerworks/views/linux/rss/libraryview.jsp" + nil nil nil) + ("Linuxtoday.com" + "http://linuxtoday.com/backend/biglt.rss" nil nil nil) + ("Linux.com - Content Feed" + "http://linux.com/rss/feeds.php" nil nil nil) + ("TuxRadar feed" + "http://www.tuxradar.com/rss" nil nil nil) + ("Planet Emacsen" + "http://planet.emacsen.org/atom.xml" nil nil nil) + ("M-x all-things-emacs" + "http://emacsblog.org/feed/" nil nil nil) + ;; ("Xah Emacs Blog" + ;; "http://feeds.feedburner.com/XahsEmacsBlog" nil nil nil) + ;; ("Mastering Emacs" + ;; "http://www.masteringemacs.org/feed/" nil nil nil) + ("WikEmacs - Recent changes [en]" + "http://wikemacs.org/w/index.php?title=Special:RecentChanges&feed=atom" + nil nil nil) + ("newest questions tagged emacs - Stack Overflow" + "http://stackoverflow.com/feeds/tag?tagnames=emacs&sort=newest" + nil nil nil) + ("newest questions tagged elisp - Stack Overflow" + "http://stackoverflow.com/feeds/tag?tagnames=elisp&sort=newest" + nil nil nil) + ("Recent Commits to python-django.el:master" + "https://github.com/fgallina/python-django.el/commits/master.atom" + nil nil nil))) +(setq newsticker-use-full-width nil) + +(provide 'newsticker-init) -- cgit v1.2.3-54-g00ecf From 14c4a15682df9af4f06571d843821e1664e87ce6 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 18:21:53 +0100 Subject: .emacs.d/site-lisp/dzen.el --- .emacs.d/site-lisp/dzen.el | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .emacs.d/site-lisp/dzen.el (limited to '.emacs.d') diff --git a/.emacs.d/site-lisp/dzen.el b/.emacs.d/site-lisp/dzen.el new file mode 100644 index 0000000..a28418b --- /dev/null +++ b/.emacs.d/site-lisp/dzen.el @@ -0,0 +1,61 @@ +;;; dzen.el --- Control DZEN2 from emacs + +;; Copyright (C) 2012 Tom Willemsen + +;; Author: Tom Willemsen +;; Keywords: convenience + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; + +;;; Code: + +(require 'newst-backend) +(require 'sawfish) + +(defun get-mail-count (account) + (length (directory-files (concat "/home/slash/documents/mail/" + account "/inbox/new") nil "^[^.]"))) + +(defun dzen-start () + (interactive) + (let ((proc (start-process "dzen2" "*dzen2*" "dzen2" + "-w" "1920" + "-fn" "Monaco-12" + "-bg" "#222224" + "-fg" "#eeeeec")) + (strl (format + "%s" + (sawfish-eval-expression '(window-name (input-focus))))) + (strr (format + "jabber: %s ryu: %d gm: %d aet: %d 9n: %d rss: %d\n" + (oni:current-jabber-status) + (get-mail-count "ryuslash.org") + (get-mail-count "gmail") + (get-mail-count "aethon") + (get-mail-count "ninthfloor") + (newsticker--stat-num-items-total 'new)))) + (process-send-string + proc (format "^p(_LEFT)%s^p(_RIGHT)^p(-%d)%s" + strl (+ 9 (* 9 (length strr))) strr)))) + +(defun dzen-stop () + (interactive) + (kill-process "dzen2")) + +(provide 'dzen) +;;; dzen.el ends here -- cgit v1.2.3-54-g00ecf From 2622f3e7d9d8da3c0dedc2dce55203981d529bd1 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 21:57:17 +0100 Subject: Remove themes/yoshi-theme It's already in its own repository. --- .emacs.d/themes/yoshi-theme.el | 91 ------------------------------------------ 1 file changed, 91 deletions(-) delete mode 100644 .emacs.d/themes/yoshi-theme.el (limited to '.emacs.d') diff --git a/.emacs.d/themes/yoshi-theme.el b/.emacs.d/themes/yoshi-theme.el deleted file mode 100644 index 39f35f5..0000000 --- a/.emacs.d/themes/yoshi-theme.el +++ /dev/null @@ -1,91 +0,0 @@ -;;; yoshi-theme.el --- Theme named after my cat - -;; Copyright (C) 2012 Tom Willemsen - -;; Author: Tom Willemsen -;; Keywords: faces - -;; This program is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation, either version 3 of the License, or -;; (at your option) any later version. - -;; This program is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with this program. If not, see . - -;;; Commentary: - -;; Just a theme named after my cat. He doesn't actually look like -;; this. - -;;; Code: - -(deftheme yoshi - "Created 2012-09-24") - -(custom-theme-set-faces - 'yoshi - '(default ((t (:background "#111113" :foreground "#eeeeec")))) - '(flymake-errline ((t (:background nil :underline (:color "#ff756e" :style wave))))) - '(flymake-infoline ((t (:background nil :underline (:color "#78a2c1" :style wave))))) - '(flymake-warnline ((t (:background nil :underline (:color "#ffbb56" :style wave))))) - '(flyspell-duplicate ((t (:underline (:color "#ffbb56" :style wave))))) - '(flyspell-incorrect ((t (:underline (:color "#ff756e" :style wave))))) - '(font-lock-comment-delimiter-face ((t (:foreground "#a9a9a9" :slant italic :weight bold)))) - '(font-lock-comment-face ((t (:foreground "#a9a9a9" :slant italic)))) - '(font-lock-constant-face ((t (:foreground "#93d8d8")))) - '(font-lock-doc-face ((t (:foreground "#9ad870")))) - '(font-lock-function-name-face ((t (:foreground "#78a2c1")))) - '(font-lock-keyword-face ((t (:foreground "#cfce29")))) - '(font-lock-string-face ((t (:foreground "#ffbd5c")))) - '(font-lock-type-face ((t (:foreground "#78a2c1" :bold t)))) - '(font-lock-variable-name-face ((t (:foreground "#c39cc3")))) - '(highlight ((t (:background "#171719")))) - '(ido-subdir ((t (:foreground "#ff756e")))) - '(italic ((t (:slant italic)))) - '(jabber-chat-prompt-foreign ((t (:foreground "#ff756e")))) - '(jabber-chat-prompt-local ((t (:foreground "#78a2c1")))) - '(jabber-roster-user-online ((t (:foreground "#769ff2")))) - '(link ((t (:foreground "#ffbb56" :underline t)))) - '(magit-item-highlight ((t (:weight bold)))) - '(markdown-header-face-1 ((t (:height 1.5 :foreground "#78a2c1")))) - '(markdown-header-face-2 ((t (:height 1.4 :foreground "#93d8d8")))) - '(markdown-header-face-3 ((t (:height 1.3 :foreground "#9ad870")))) - '(markdown-header-face-4 ((t (:height 1.2 :foreground "#c39cc3")))) - '(markdown-header-face-5 ((t (:height 1.1 :foreground "#ff756e")))) - '(markdown-header-face-6 ((t (:height 1.0 :foreground "#a9a9a9")))) - '(minibuffer-prompt ((t (:foreground "#78a2c1")))) - '(mode-line ((t (:background "#222224" :foreground "#eeeeec" :box nil)))) - '(mode-line-inactive ((t (:background "#171719" :foreground "#999999" :box nil)))) - '(org-level-1 ((t (:height 1.5 :foreground "#78a2c1")))) - '(org-level-2 ((t (:height 1.4 :foreground "#93d8d8")))) - '(org-level-3 ((t (:height 1.3 :foreground "#9ad870")))) - '(org-level-4 ((t (:height 1.2 :foreground "#c39cc3")))) - '(org-level-5 ((t (:height 1.1 :foreground "#ff756e")))) - '(org-level-6 ((t (:height 1.0 :foreground "#a9a9a9")))) - '(org-level-7 ((t (:height 1.0 :foreground "#ffbb56")))) - '(org-level-8 ((t (:height 1.0 :foreground "#999999")))) - '(region ((t (:background "#2729b6")))) - '(rst-level-1 ((t (:height 1.5 :background nil)))) - '(rst-level-2 ((t (:height 1.4 :background nil)))) - '(rst-level-3 ((t (:height 1.3 :background nil)))) - '(rst-level-4 ((t (:height 1.2 :background nil)))) - '(rst-level-5 ((t (:height 1.1 :background nil)))) - '(rst-level-6 ((t (:height 1.0 :background nil)))) - '(term-color-black ((t (:background "#171719" :foreground "#999999")))) - '(term-color-blue ((t (:background "#2729b6" :foreground "#78a2c1")))) - '(term-color-cyan ((t (:background "#208181" :foreground "#93d8d8")))) - '(term-color-green ((t (:background "#405c2e" :foreground "#9ad870")))) - '(term-color-magenta ((t (:background "#5e325d" :foreground "#c39cc3")))) - '(term-color-red ((t (:background "#973732" :foreground "#ff756e")))) - '(term-color-white ((t (:background "#222224" :foreground "#a9a9a9")))) - '(term-color-yellow ((t (:background "#835c0e" :foreground "#ffbb56")))) - ) - -(provide-theme 'yoshi) -;;; yoshi-theme.el ends here -- cgit v1.2.3-54-g00ecf From 9b3cc1d28d5a5bab0d1ce13e6612bbe989f4a1ce Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 4 Dec 2012 22:05:24 +0100 Subject: Add Makefiles to .emacs.d --- .emacs.d/Makefile | 5 ++++ .emacs.d/emacs.mk | 52 ++++++++++++++++++++++++++++++++++++ .emacs.d/eshell/Makefile | 5 ++++ .emacs.d/site-lisp/Makefile | 7 +++++ .emacs.d/snippets/Makefile | 4 +++ .emacs.d/snippets/html-mode/Makefile | 4 +++ .emacs.d/snippets/org-mode/Makefile | 4 +++ 7 files changed, 81 insertions(+) create mode 100644 .emacs.d/Makefile create mode 100644 .emacs.d/emacs.mk create mode 100644 .emacs.d/eshell/Makefile create mode 100644 .emacs.d/site-lisp/Makefile create mode 100644 .emacs.d/snippets/Makefile create mode 100644 .emacs.d/snippets/html-mode/Makefile create mode 100644 .emacs.d/snippets/org-mode/Makefile (limited to '.emacs.d') diff --git a/.emacs.d/Makefile b/.emacs.d/Makefile new file mode 100644 index 0000000..734d499 --- /dev/null +++ b/.emacs.d/Makefile @@ -0,0 +1,5 @@ +DESTDIR=$(HOME)/.emacs.d +objects=init.elc init.el gnus.elc gnus.el +modules=eshell site-lisp snippets + +include emacs.mk diff --git a/.emacs.d/emacs.mk b/.emacs.d/emacs.mk new file mode 100644 index 0000000..8ffba3e --- /dev/null +++ b/.emacs.d/emacs.mk @@ -0,0 +1,52 @@ +LOAD_PATH=. /usr/share/emacs/site-lisp $(HOME)/.emacs.d/site-lisp +EMACS=emacs $(addprefix -L ,$(LOAD_PATH)) + +FG_YEL=\033[0;33m +FG_GRE=\033[0;32m +FG_RED=\033[0;31m +CLR_RE=\033[0;00m + +compile = $(EMACS) -Q -batch -eval "(byte-compile-file \"$(1)\")" +define newer = +$(shell if [ "$(1)" -nt "$(DESTDIR)/$(1)" ]; then echo "newer"; fi) +endef + +install-objects=$(addprefix install-,$(objects)) +uninstall-objects=$(addprefix uninstall-,$(objects)) +check-objects=$(addprefix check-,$(objects)) + +install-modules=$(addprefix install-,$(modules)) +uninstall-modules=$(addprefix uninstall-,$(modules)) +check-modules=$(addprefix check-,$(modules)) + +.PHONY: install uninstall check uninstall $(modules) +all: $(modules) $(objects) +install: $(install-modules) $(install-objects) +check: $(check-modules) $(check-objects) +uninstall: $(uninstall-modules) $(uninstall-objects) + +$(filter %.elc,$(objects)): %.elc: %.el + $(call compile,$^) + +$(modules): %: + @$(MAKE) -C $* + +$(install-objects): install-%: % + $(if $(call newer,$*),install -pDm 644 "$*" "$(DESTDIR)/$*") + +$(install-modules): install-%: + @$(MAKE) -C $* install + +$(uninstall-objects): uninstall-%: + $(if $(call newer,$*),rm -f "$(DESTDIR)/$*") + +$(uninstall-modules): uninstall-%: + @$(MAKE) -C $* uninstall + +$(check-objects): check-%: + @$(if $(call newer,$*), \ + echo -e "$(FG_YEL)$* $(FG_GRE)newer$(CLR_RE)!", \ + echo -e "$(FG_YEL)$* $(FG_RED)not newer$(CLR_RE).") + +$(check-modules): check-%: + @$(MAKE) -C $* check diff --git a/.emacs.d/eshell/Makefile b/.emacs.d/eshell/Makefile new file mode 100644 index 0000000..58517d0 --- /dev/null +++ b/.emacs.d/eshell/Makefile @@ -0,0 +1,5 @@ +DESTDIR=$(HOME)/.emacs.d/eshell +objects=alias +modules= + +include ../emacs.mk diff --git a/.emacs.d/site-lisp/Makefile b/.emacs.d/site-lisp/Makefile new file mode 100644 index 0000000..918086c --- /dev/null +++ b/.emacs.d/site-lisp/Makefile @@ -0,0 +1,7 @@ +DESTDIR=$(HOME)/.emacs.d/eshell +objects=dzen.elc dzen.el eltuki.elc eltuki.el ext.elc ext.el \ + metalexpress.elc metalexpress.el mu4e-init.elc mu4e-init.el \ + newsticker-init.elc newsticker-init.el oni.elc oni.el org-init.elc \ + org-init.el quick-edit-mode.elc quick-edit-mode.el + +include ../emacs.mk diff --git a/.emacs.d/snippets/Makefile b/.emacs.d/snippets/Makefile new file mode 100644 index 0000000..6decdb1 --- /dev/null +++ b/.emacs.d/snippets/Makefile @@ -0,0 +1,4 @@ +DESTDIR=$(HOME)/.emacs.d/snippets +modules=html-mode org-mode + +include ../emacs.mk diff --git a/.emacs.d/snippets/html-mode/Makefile b/.emacs.d/snippets/html-mode/Makefile new file mode 100644 index 0000000..78959a3 --- /dev/null +++ b/.emacs.d/snippets/html-mode/Makefile @@ -0,0 +1,4 @@ +DESTDIR=$(HOME)/.emacs.d/snippets/html-mode +objects=for generic-block + +include ../../emacs.mk diff --git a/.emacs.d/snippets/org-mode/Makefile b/.emacs.d/snippets/org-mode/Makefile new file mode 100644 index 0000000..155256c --- /dev/null +++ b/.emacs.d/snippets/org-mode/Makefile @@ -0,0 +1,4 @@ +DESTDIR=$(HOME)/.emacs.d/snippets/org-mode +objects=codeblock heading + +include ../../emacs.mk -- cgit v1.2.3-54-g00ecf From f5e88cf6091aebc48fa23ff0f15a8600eb11bf8d Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 5 Dec 2012 00:13:28 +0100 Subject: Add Makefiles for all files --- .config/Makefile | 5 ++++ .config/awesome/Makefile | 5 ++++ .config/awesome/themes/Makefile | 4 +++ .config/awesome/themes/custom/Makefile | 4 +++ .config/clfswm/Makefile | 4 +++ .config/cower/Makefile | 4 +++ .config/dunst/Makefile | 4 +++ .config/fehlstart/Makefile | 4 +++ .config/fish/Makefile | 4 +++ .config/herbstluftwm/Makefile | 4 +++ .config/newsbeuter/Makefile | 4 +++ .config/zathura/Makefile | 4 +++ .conkerorrc/Makefile | 5 ++++ .conkerorrc/themes/Makefile | 4 +++ .conkerorrc/themes/naquadah/Makefile | 5 ++++ .emacs.d/Makefile | 4 +-- .emacs.d/emacs.mk | 52 -------------------------------- .emacs.d/eshell/Makefile | 4 +-- .emacs.d/site-lisp/Makefile | 4 +-- .emacs.d/snippets/Makefile | 4 +-- .emacs.d/snippets/html-mode/Makefile | 4 +-- .emacs.d/snippets/org-mode/Makefile | 4 +-- .moc/Makefile | 5 ++++ .moc/themes/Makefile | 4 +++ .mutt/Makefile | 6 ++++ .ncmpcpp/Makefile | 4 +++ .pentadactyl/Makefile | 4 +++ .pentadactyl/plugins/Makefile | 4 +++ .sawfish/Makefile | 4 +++ .w3m/Makefile | 4 +++ .zsh/Makefile | 4 +++ .zsh/functions/Makefile | 7 +++++ Makefile | 9 ++++++ dotfiles.mk | 55 ++++++++++++++++++++++++++++++++++ 34 files changed, 186 insertions(+), 64 deletions(-) create mode 100644 .config/Makefile create mode 100644 .config/awesome/Makefile create mode 100644 .config/awesome/themes/Makefile create mode 100644 .config/awesome/themes/custom/Makefile create mode 100644 .config/clfswm/Makefile create mode 100644 .config/cower/Makefile create mode 100644 .config/dunst/Makefile create mode 100644 .config/fehlstart/Makefile create mode 100644 .config/fish/Makefile create mode 100644 .config/herbstluftwm/Makefile create mode 100644 .config/newsbeuter/Makefile create mode 100644 .config/zathura/Makefile create mode 100644 .conkerorrc/Makefile create mode 100644 .conkerorrc/themes/Makefile create mode 100644 .conkerorrc/themes/naquadah/Makefile delete mode 100644 .emacs.d/emacs.mk create mode 100644 .moc/Makefile create mode 100644 .moc/themes/Makefile create mode 100644 .mutt/Makefile create mode 100644 .ncmpcpp/Makefile create mode 100644 .pentadactyl/Makefile create mode 100644 .pentadactyl/plugins/Makefile create mode 100644 .sawfish/Makefile create mode 100644 .w3m/Makefile create mode 100644 .zsh/Makefile create mode 100644 .zsh/functions/Makefile create mode 100644 Makefile create mode 100644 dotfiles.mk (limited to '.emacs.d') diff --git a/.config/Makefile b/.config/Makefile new file mode 100644 index 0000000..0d9939f --- /dev/null +++ b/.config/Makefile @@ -0,0 +1,5 @@ +DESTDIR:=$(DESTDIR)/.config +modules=awesome clfswm cower dunst fehlstart fish herbstluftwm \ + newsbeuter zathura + +include ../dotfiles.mk diff --git a/.config/awesome/Makefile b/.config/awesome/Makefile new file mode 100644 index 0000000..bec3818 --- /dev/null +++ b/.config/awesome/Makefile @@ -0,0 +1,5 @@ +DESTDIR:=$(DESTDIR)/awesome +modules=themes +objects=bowl.lua ext.lua infoline.lua keychain.lua oni.lua rc.lua + +include ../../dotfiles.mk diff --git a/.config/awesome/themes/Makefile b/.config/awesome/themes/Makefile new file mode 100644 index 0000000..85298f3 --- /dev/null +++ b/.config/awesome/themes/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/themes +modules=custom + +include ../../../dotfiles.mk diff --git a/.config/awesome/themes/custom/Makefile b/.config/awesome/themes/custom/Makefile new file mode 100644 index 0000000..8cebe3d --- /dev/null +++ b/.config/awesome/themes/custom/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/custom +objects=theme.lua + +include ../../../../dotfiles.mk diff --git a/.config/clfswm/Makefile b/.config/clfswm/Makefile new file mode 100644 index 0000000..d79241a --- /dev/null +++ b/.config/clfswm/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/clfswm +objects=clfswmrc + +include ../../dotfiles.mk diff --git a/.config/cower/Makefile b/.config/cower/Makefile new file mode 100644 index 0000000..8828ad3 --- /dev/null +++ b/.config/cower/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/cower +objects=config + +include ../../dotfiles.mk diff --git a/.config/dunst/Makefile b/.config/dunst/Makefile new file mode 100644 index 0000000..4f8a4e5 --- /dev/null +++ b/.config/dunst/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/dunst +objects=dunstrc + +include ../../dotfiles.mk diff --git a/.config/fehlstart/Makefile b/.config/fehlstart/Makefile new file mode 100644 index 0000000..303a9ca --- /dev/null +++ b/.config/fehlstart/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/fehlstart +objects=fehlstart.rc + +include ../../dotfiles.mk diff --git a/.config/fish/Makefile b/.config/fish/Makefile new file mode 100644 index 0000000..2b32c1b --- /dev/null +++ b/.config/fish/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/fish +objects=config.fish + +include ../../dotfiles.mk diff --git a/.config/herbstluftwm/Makefile b/.config/herbstluftwm/Makefile new file mode 100644 index 0000000..f875c23 --- /dev/null +++ b/.config/herbstluftwm/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/herbstluftwm +objects=autostart panel.sh + +include ../../dotfiles.mk diff --git a/.config/newsbeuter/Makefile b/.config/newsbeuter/Makefile new file mode 100644 index 0000000..fbf22de --- /dev/null +++ b/.config/newsbeuter/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/newsbeuter +objects=config urls + +include ../../dotfiles.mk diff --git a/.config/zathura/Makefile b/.config/zathura/Makefile new file mode 100644 index 0000000..c6c93c1 --- /dev/null +++ b/.config/zathura/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/zathura +objects=zathurarc + +include ../../dotfiles.mk diff --git a/.conkerorrc/Makefile b/.conkerorrc/Makefile new file mode 100644 index 0000000..d2bc0db --- /dev/null +++ b/.conkerorrc/Makefile @@ -0,0 +1,5 @@ +DESTDIR:=$(DESTDIR)/.conkerorrc +modules=themes +objects=gtk2rc init.js + +include ../dotfiles.mk diff --git a/.conkerorrc/themes/Makefile b/.conkerorrc/themes/Makefile new file mode 100644 index 0000000..a88d833 --- /dev/null +++ b/.conkerorrc/themes/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/themes +modules=naquadah + +include ../../dotfiles.mk diff --git a/.conkerorrc/themes/naquadah/Makefile b/.conkerorrc/themes/naquadah/Makefile new file mode 100644 index 0000000..0512339 --- /dev/null +++ b/.conkerorrc/themes/naquadah/Makefile @@ -0,0 +1,5 @@ +DESTDIR:=$(DESTDIR)/naquadah +objects=conkeror--scrollbars.css hints--url-panel.css minibuffer.css \ + mode-line.css new-tabs.css tab-bar.css theme.json + +include ../../../dotfiles.mk diff --git a/.emacs.d/Makefile b/.emacs.d/Makefile index 734d499..0c716a8 100644 --- a/.emacs.d/Makefile +++ b/.emacs.d/Makefile @@ -1,5 +1,5 @@ -DESTDIR=$(HOME)/.emacs.d +DESTDIR:=$(DESTDIR)/.emacs.d objects=init.elc init.el gnus.elc gnus.el modules=eshell site-lisp snippets -include emacs.mk +include ../dotfiles.mk diff --git a/.emacs.d/emacs.mk b/.emacs.d/emacs.mk deleted file mode 100644 index 8ffba3e..0000000 --- a/.emacs.d/emacs.mk +++ /dev/null @@ -1,52 +0,0 @@ -LOAD_PATH=. /usr/share/emacs/site-lisp $(HOME)/.emacs.d/site-lisp -EMACS=emacs $(addprefix -L ,$(LOAD_PATH)) - -FG_YEL=\033[0;33m -FG_GRE=\033[0;32m -FG_RED=\033[0;31m -CLR_RE=\033[0;00m - -compile = $(EMACS) -Q -batch -eval "(byte-compile-file \"$(1)\")" -define newer = -$(shell if [ "$(1)" -nt "$(DESTDIR)/$(1)" ]; then echo "newer"; fi) -endef - -install-objects=$(addprefix install-,$(objects)) -uninstall-objects=$(addprefix uninstall-,$(objects)) -check-objects=$(addprefix check-,$(objects)) - -install-modules=$(addprefix install-,$(modules)) -uninstall-modules=$(addprefix uninstall-,$(modules)) -check-modules=$(addprefix check-,$(modules)) - -.PHONY: install uninstall check uninstall $(modules) -all: $(modules) $(objects) -install: $(install-modules) $(install-objects) -check: $(check-modules) $(check-objects) -uninstall: $(uninstall-modules) $(uninstall-objects) - -$(filter %.elc,$(objects)): %.elc: %.el - $(call compile,$^) - -$(modules): %: - @$(MAKE) -C $* - -$(install-objects): install-%: % - $(if $(call newer,$*),install -pDm 644 "$*" "$(DESTDIR)/$*") - -$(install-modules): install-%: - @$(MAKE) -C $* install - -$(uninstall-objects): uninstall-%: - $(if $(call newer,$*),rm -f "$(DESTDIR)/$*") - -$(uninstall-modules): uninstall-%: - @$(MAKE) -C $* uninstall - -$(check-objects): check-%: - @$(if $(call newer,$*), \ - echo -e "$(FG_YEL)$* $(FG_GRE)newer$(CLR_RE)!", \ - echo -e "$(FG_YEL)$* $(FG_RED)not newer$(CLR_RE).") - -$(check-modules): check-%: - @$(MAKE) -C $* check diff --git a/.emacs.d/eshell/Makefile b/.emacs.d/eshell/Makefile index 58517d0..fd3b0f2 100644 --- a/.emacs.d/eshell/Makefile +++ b/.emacs.d/eshell/Makefile @@ -1,5 +1,5 @@ -DESTDIR=$(HOME)/.emacs.d/eshell +DESTDIR:=$(DESTDIR)/eshell objects=alias modules= -include ../emacs.mk +include ../../dotfiles.mk diff --git a/.emacs.d/site-lisp/Makefile b/.emacs.d/site-lisp/Makefile index 918086c..bbccbb7 100644 --- a/.emacs.d/site-lisp/Makefile +++ b/.emacs.d/site-lisp/Makefile @@ -1,7 +1,7 @@ -DESTDIR=$(HOME)/.emacs.d/eshell +DESTDIR:=$(DESTDIR)/site-lisp objects=dzen.elc dzen.el eltuki.elc eltuki.el ext.elc ext.el \ metalexpress.elc metalexpress.el mu4e-init.elc mu4e-init.el \ newsticker-init.elc newsticker-init.el oni.elc oni.el org-init.elc \ org-init.el quick-edit-mode.elc quick-edit-mode.el -include ../emacs.mk +include ../../dotfiles.mk diff --git a/.emacs.d/snippets/Makefile b/.emacs.d/snippets/Makefile index 6decdb1..20d79e0 100644 --- a/.emacs.d/snippets/Makefile +++ b/.emacs.d/snippets/Makefile @@ -1,4 +1,4 @@ -DESTDIR=$(HOME)/.emacs.d/snippets +DESTDIR:=$(DESTDIR)/snippets modules=html-mode org-mode -include ../emacs.mk +include ../../dotfiles.mk diff --git a/.emacs.d/snippets/html-mode/Makefile b/.emacs.d/snippets/html-mode/Makefile index 78959a3..b2dff78 100644 --- a/.emacs.d/snippets/html-mode/Makefile +++ b/.emacs.d/snippets/html-mode/Makefile @@ -1,4 +1,4 @@ -DESTDIR=$(HOME)/.emacs.d/snippets/html-mode +DESTDIR:=$(DESTDIR)/html-mode objects=for generic-block -include ../../emacs.mk +include ../../../dotfiles.mk diff --git a/.emacs.d/snippets/org-mode/Makefile b/.emacs.d/snippets/org-mode/Makefile index 155256c..e913708 100644 --- a/.emacs.d/snippets/org-mode/Makefile +++ b/.emacs.d/snippets/org-mode/Makefile @@ -1,4 +1,4 @@ -DESTDIR=$(HOME)/.emacs.d/snippets/org-mode +DESTDIR:=$(DESTDIR)/org-mode objects=codeblock heading -include ../../emacs.mk +include ../../../dotfiles.mk diff --git a/.moc/Makefile b/.moc/Makefile new file mode 100644 index 0000000..5eb4fa2 --- /dev/null +++ b/.moc/Makefile @@ -0,0 +1,5 @@ +DESTDIR:=$(DESTDIR)/.moc +modules=themes +objects=config + +include ../dotfiles.mk diff --git a/.moc/themes/Makefile b/.moc/themes/Makefile new file mode 100644 index 0000000..fd61c62 --- /dev/null +++ b/.moc/themes/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/themes +objects=custom + +include ../../dotfiles.mk diff --git a/.mutt/Makefile b/.mutt/Makefile new file mode 100644 index 0000000..d1e65d1 --- /dev/null +++ b/.mutt/Makefile @@ -0,0 +1,6 @@ +DESTDIR:=$(DESTDIR)/.mutt +objects=aethon.muttrc arch.muttrc colors.muttrc gmail.muttrc \ + iactor.muttrc macros mailcap muttrc ninthfloor.muttrc \ + ryuslash.org.muttrc sig + +include ../dotfiles.mk diff --git a/.ncmpcpp/Makefile b/.ncmpcpp/Makefile new file mode 100644 index 0000000..728f643 --- /dev/null +++ b/.ncmpcpp/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/.ncmpcpp +objects=config + +include ../dotfiles.mk diff --git a/.pentadactyl/Makefile b/.pentadactyl/Makefile new file mode 100644 index 0000000..e0640d2 --- /dev/null +++ b/.pentadactyl/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/.pentadactyl +modules=plugins + +include ../dotfiles.mk diff --git a/.pentadactyl/plugins/Makefile b/.pentadactyl/plugins/Makefile new file mode 100644 index 0000000..8ed9478 --- /dev/null +++ b/.pentadactyl/plugins/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/plugins +objects=emacs.penta + +include ../../dotfiles.mk diff --git a/.sawfish/Makefile b/.sawfish/Makefile new file mode 100644 index 0000000..b680366 --- /dev/null +++ b/.sawfish/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/.sawfish +objects=rc + +include ../dotfiles.mk diff --git a/.w3m/Makefile b/.w3m/Makefile new file mode 100644 index 0000000..85d09d5 --- /dev/null +++ b/.w3m/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/.w3m +objects=config + +include ../dotfiles.mk diff --git a/.zsh/Makefile b/.zsh/Makefile new file mode 100644 index 0000000..077367e --- /dev/null +++ b/.zsh/Makefile @@ -0,0 +1,4 @@ +DESTDIR:=$(DESTDIR)/.zsh +modules=functions + +include ../dotfiles.mk diff --git a/.zsh/functions/Makefile b/.zsh/functions/Makefile new file mode 100644 index 0000000..670c57c --- /dev/null +++ b/.zsh/functions/Makefile @@ -0,0 +1,7 @@ +DESTDIR:=$(DESTDIR)/functions +objects=chpwd_show_todo chpwd_update_git_vars env get_cnt line \ + precmd_maybe_festival precmd_update_git_vars precmd_update_updates \ + preexec_update_vars prompt prompt_git_info rprompt \ + update_current_git_vars welcome + +include ../../dotfiles.mk diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ec793cd --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +export DESTDIR:=$(HOME) +modules=.emacs.d .config .conkerorrc .local .moc .mutt .ncmpcpp \ + .pentadactyl .sawfish .ssh .w3m .weechat .zsh +objects=.bash_profile .beetsconfig .conky_box.lua .conkyrc .gitconfig \ + .guile .hgrc .offlineimap.py .offlineimaprc .screenrc .scwmrc \ + .slrnrc .stumpwmrc .tmux.conf .urlview .xbindkeysrc.scm .Xdefaults \ + .xinitrc .Xmodmap .xsession .zprofile .zshrc + +include dotfiles.mk diff --git a/dotfiles.mk b/dotfiles.mk new file mode 100644 index 0000000..6d33f72 --- /dev/null +++ b/dotfiles.mk @@ -0,0 +1,55 @@ +LOAD_PATH=. /usr/share/emacs/site-lisp $(HOME)/.emacs.d/site-lisp +EMACS=emacs $(addprefix -L ,$(LOAD_PATH)) + +FG_YEL=\033[0;33m +FG_GRE=\033[0;32m +FG_RED=\033[0;31m +CLR_RE=\033[0;00m + +compile = $(EMACS) -Q -batch -eval "(byte-compile-file \"$(1)\")" +define newer = +$(shell if [ "$(1)" -nt "$(DESTDIR)/$(1)" ]; then echo "newer"; fi) +endef + +install-objects=$(addprefix install-,$(objects)) +uninstall-objects=$(addprefix uninstall-,$(objects)) +check-objects=$(addprefix check-,$(objects)) + +install-modules=$(addprefix install-,$(modules)) +uninstall-modules=$(addprefix uninstall-,$(modules)) +check-modules=$(addprefix check-,$(modules)) + +.PHONY: all install uninstall check uninstall $(modules) \ + $(install-objects) $(uninstall-objects) $(check-objects) \ + $(install-modules) $(uninstall-modules) $(check-modules) +all: $(modules) $(objects) +install: $(install-modules) $(install-objects) +check: $(check-modules) $(check-objects) +uninstall: $(uninstall-modules) $(uninstall-objects) + +$(modules): %: + @echo $(MAKEFILES) + @$(MAKE) -C $* + +$(install-objects): install-%: % + $(if $(call newer,$*),install -pDm 644 "$*" "$(DESTDIR)/$*") + +$(install-modules): install-%: + @$(MAKE) -C $* install + +$(uninstall-objects): uninstall-%: + $(if $(call newer,$*),rm -f "$(DESTDIR)/$*") + +$(uninstall-modules): uninstall-%: + @$(MAKE) -C $* uninstall + +$(check-objects): check-%: + @$(if $(call newer,$*), \ + echo -e "$(FG_YEL)$* $(FG_GRE)newer$(CLR_RE)!", \ + echo -e "$(FG_YEL)$* $(FG_RED)not newer$(CLR_RE).") + +$(check-modules): check-%: + @$(MAKE) -C $* check + +$(filter %.elc,$(objects)): %.elc: %.el + $(call compile,$^) -- cgit v1.2.3-54-g00ecf