From f22043301a32826d19e3da2f3e419f9df47b9c74 Mon Sep 17 00:00:00 2001 From: Ambrevar Date: Wed, 18 Jul 2012 18:25:28 +0100 Subject: [PATCH] Luakit: Google Map alias. Emacs: improved colors (most notably for mails). --- .arch-pkg-explicit-zeus | 1 + .arch-pkg-official-zeus | 2 ++ .config/awesome/rc.lua | 4 ++-- .config/luakit/globals.lua | 1 + .emacs | 33 ++++++++++++++++++++++++++------- .xinitrc | 2 +- README | 14 ++++++++++++-- 7 files changed, 45 insertions(+), 12 deletions(-) diff --git a/.arch-pkg-explicit-zeus b/.arch-pkg-explicit-zeus index fa613b00..084c3c53 100644 --- a/.arch-pkg-explicit-zeus +++ b/.arch-pkg-explicit-zeus @@ -137,6 +137,7 @@ pwgen pwsafe pygtk python2-udiskie +qingy ranger reiserfsprogs rtorrent diff --git a/.arch-pkg-official-zeus b/.arch-pkg-official-zeus index 477a1117..7fc7b30a 100644 --- a/.arch-pkg-official-zeus +++ b/.arch-pkg-official-zeus @@ -60,6 +60,7 @@ d-feet dhcpcd dialog diffutils +directfb dirmngr djvulibre dnssec-anchors @@ -424,6 +425,7 @@ python-configobj python-dbus-common python-notify python-pycurl +qingy randrproto ranger raptor diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 9311bdf1..7b5b5fc8 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -508,7 +508,7 @@ awful.rules.rules = { properties = { floating = true } }, { rule = { class = "Gimp" }, - properties = { floating = true } }, + properties = { floating = false } }, -- Flash workaround. Does not work? { rule = { instance = "plugin-container" }, @@ -517,7 +517,7 @@ awful.rules.rules = { { rule = { instance = "exe" }, properties = { floating = true } }, - -- TODO: Only works for terminal with WM_COMMAND property? + -- Only works for terminal with WM_COMMAND property? -- Does not work with LXTerminal. { rule = { name = "cmus"}, properties = { tag = tags[1][6] } }, diff --git a/.config/luakit/globals.lua b/.config/luakit/globals.lua index 29f89b97..087c72ad 100644 --- a/.config/luakit/globals.lua +++ b/.config/luakit/globals.lua @@ -57,6 +57,7 @@ search_engines = { arch = "http://wiki.archlinux.org/index.php?title=Special%%3ASearch&search=%s&go=Go", aur = "https://aur.archlinux.org/packages.php?O=0&K=%s&do_Search=Go", google = "http://google.com/search?q=%s", + gm = "https://maps.google.com/maps?q=%s", imdb = "http://imdb.com/find?s=all&q=%s", -- Note that imdb is messy with spaces. torrent = "http://torrentz.eu/search?f=%s", w = "http://en.wikipedia.org/wiki/Special:Search?search=%s", diff --git a/.emacs b/.emacs index afccb985..b4a8c61a 100644 --- a/.emacs +++ b/.emacs @@ -1,6 +1,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Emacs config -;; 2012-07-02 +;; 2012-07-18 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;============================================================================== @@ -119,6 +119,20 @@ ("\\<\\(and\\|or\\|not\\)\\>" . font-lock-keyword-face) )) +;; TODO: make emacs and mutt colors fit. +(font-lock-add-keywords + 'mail-mode + '( + ("^From:" . font-lock-preprocessor-face) + ("^Subject:" . font-lock-builtin-face) + ("^In-Reply-To:" . font-lock-builtin-face) + ("\\([[:alnum:]._-]+@[[:alnum:]]+.[[:alnum:]]+\\)" 1 font-lock-string-face) + ("^\> *\\([^\> ]\\).*$" . font-lock-doc-face) + ("^\> *\> *\\([^\> ]\\).*$" . font-lock-constant-face) + ("^\> *\> *\> *\\([^\> ]\\).*$" . font-lock-type-face) + ("^--.*\\(\n.*\\)*" . font-lock-comment-face) + )) + (mapcar (lambda (mode) (font-lock-add-keywords @@ -126,14 +140,14 @@ '( ("[^[:digit:][:space:]][[:space:]]*\\(-\\)[[:digit:]]+" 1 font-lock-constant-face) ("\\(0x[[:digit:]a-fA-F]+\\)[^[:alnum:]_]" 1 font-lock-constant-face) - ("\\([[:digit:]]+\\)[^[:alnum:]_]" 1 font-lock-constant-face) + ("[^[:alnum:]_]\\([[:digit:]]+\\)[^[:alnum:]_]" 1 font-lock-constant-face) ("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend) ("\\<\\(TODO\\):" 1 font-lock-warning-face prepend) ))) - '( text-mode mail-mode - sh-mode emacs-lisp-mode lua-mode - c-mode - latex-mode html-mode texinfo-mode)) + '( text-mode + sh-mode emacs-lisp-mode lua-mode + c-mode + latex-mode html-mode texinfo-mode)) ;; C-mode printf highlight. (defvar font-lock-format-specifier-face 'font-lock-format-specifier-face @@ -156,7 +170,10 @@ 1 font-lock-format-specifier-face t)) ))) ;; FIXME: Does not work. -;; (set-face-foreground 'compilation-column-number "magenta") +;; (add-hook +;; 'c-mode-common-hook +;; (set-face-foreground 'compilation-column-number "magenta") +;; ) ;; (set-face-background 'lazy-highlight "brightgreen" ) ;; (set-face-background 'secondary-selection "SkyBlue4") @@ -546,6 +563,8 @@ the line." ;; MediaWiki ;;============================================================================== (require 'mediawiki) + +;; TODO: make it 'customize' independant. (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/.xinitrc b/.xinitrc index bc4820b8..38d7915b 100644 --- a/.xinitrc +++ b/.xinitrc @@ -18,7 +18,7 @@ ## Launch session ##============================================================================== # [ -e /usr/bin/awesome ] && exec ck-launch-session awesome -[ -e /usr/bin/awesome ] && exec ck-launch-session bash -c "udiskie & awesome" +[ -e /usr/bin/awesome ] && exec ck-launch-session zsh -c "udiskie & awesome" diff --git a/README b/README index 0535676b..f185246f 100644 --- a/README +++ b/README @@ -124,17 +124,20 @@ The last time I used WMFS, the development was in a transition from version 1.x to 2.x. So beware!, configuration files might be quite broken. ################################################################################ -Other apps: -*********** +Complete applist +**************** antiword atool +awesome bashmount +bc calc cmus cppcheck doxygen dropbox +emacs feh fortune gcolor2 @@ -144,17 +147,20 @@ gnumeric gnuplot handbrake hdparm +help2man highlight htop inkscape irssi lrzip +luakit lxterminal mediainfo mencoder mkvtoolnix movgrav mplayer2 +mutt nasm ncdu nmap @@ -169,6 +175,7 @@ pidgin pwgen pwsafe ranger +re2c rtorrent rxvt-unicode scrot @@ -185,11 +192,14 @@ texlive trash-cli tree valgrind +vim vlock w3m weechat wipe +wmfs wv xsel yasm zathura +zsh