This repository has been archived on 2022-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
dot-files/.emacs

1084 lines
45 KiB
Plaintext
Raw Normal View History

;; Date: Aug 19, 2010
;; Author: Collin J. Doering
;; Description: Emacs configuration file (in emacs lisp)
;; TODO: clean up backages (prefer ELPA to AUR and archlinux packages); also denote which
;; source is being used after require or autoload sexp's.
;; E.g (require 'pkg) ;; PKG_SRC
;; (autoload ...) ;; PKG_SRC
;; For packages that are installed through the ELPA (and thus they are loaded
;; auto-magically) that do not require any changes to this file (.emacs) and/or
;; are changed using customize simply note (in a comment) at the beginning of this file
;; the package
;; ELPA packages that do not require modification of this file other then Customize
2013-11-03 03:18:16 +00:00
;; * psgml
;; * caml (required by tuareg)
;; * tuareg
;; * project-mode
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; * register-list
;; ELPA packages configured explicitly below:
;; * php-mode
;; * python-mode
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; * ipython
;; * lua-mode
;; * erlang
;; * clojure-mode
;; * ..more
;; TODO: document and cleanup file; specifically remove requires and autoloads of packages
;; that are autoloaded by package.el's package-initialize. Also ensure that each
;; file type and respective mode are added to auto-mode-alist along with a call to
;; autoload to give the user documentation. Eg:
;; (autoload 'foo-mode "foo" "Some documentation." t)
;; (add-to-list 'auto-mode-alist '("\\.foo\\'" . foo-mode))
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; Set repos for package.el
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
("ELPA" . "http://tromey.com/elpa/")))
;; This needs to be a the start of ~/.emacs since package-initialize is run after the user
;; init file is read but before after-init-hook. It autoloads packages installed by
;; package.el including updating the load-path and running/loading/requiring
;; pkgname-autoload.el for all packages (where pkgname is replaced with the appropriate
;; package name). To disable package.el's autoloading functionality use:
;; (setq package-enabled-at-startup nil)
;; The reason to use package-initialize here is so one can modify the installed modules
;; later in this .emacs file but still retain the autoloading functionality of package.el
(package-initialize)
;; stop renaming of saved files to filename~ which ends up breaking hardlinks
(setq backup-by-copying-when-linked t)
2013-11-03 03:18:16 +00:00
;; Turn off indentation (use spaces instead)
(setq-default indent-tabs-mode nil)
;; Turn on electric-indent-mode
(electric-indent-mode 1)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Single spaces denote end sentences for use with sentence commands
(setq sentence-end-double-space nil)
2013-11-03 03:18:16 +00:00
;; Show column number in status bar
(column-number-mode)
;; Set the fill-column for text filling
(setq fill-column 95)
;; fixes color output issues; see: http://wiki.archlinux.org/index.php/Emacs#Colored_output_issues
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; Automatically open some config files with an associated major mode
;; Note: regexp's used to match buffer filenames are intentionally left
;; unbounded (without '$') to catch cases where the filename may
;; take the format: filename~
2013-11-03 03:18:16 +00:00
(add-to-list 'auto-mode-alist '("\\.conkerorrc" . js-mode))
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
(add-to-list 'auto-mode-alist '("\\.xmobarrc" . haskell-mode))
(add-to-list 'auto-mode-alist '("\\.screenrc" . conf-mode))
(add-to-list 'auto-mode-alist '("\\.stumpwmrc" . lisp-mode))
2013-11-03 03:18:16 +00:00
(add-to-list 'auto-mode-alist '("\w*\\.service" . conf-mode))
(add-to-list 'auto-mode-alist '("\w*\\.socket" . conf-mode))
(add-to-list 'auto-mode-alist '("\\.mpdconf" . conf-mode))
(add-to-list 'auto-mode-alist '("dunstrc" . conf-mode))
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Load ~/.emacs.d/site-list-extra which contains various .el files
;; that aren't (yet) available through packages
(add-to-list 'load-path "~/.emacs.d/site-lisp-extra")
;; Define some alias' for commonly M-x'ed commands
(defalias 'run-sql 'sql-product-interactive)
;; bind M-g to M-x goto-line *DEPRECIATED*
;; "M-g was made a prefix by RMS in 2005. goto-line has been bound to M-g g and M-g M-g. XueFuqiao"
;; See: http://www.emacswiki.org/emacs/EmacsNiftyTricks
;;(global-set-key "\M-g" 'goto-line)
;; Make C-x O cycle backwards a pane (oposite to C-x o)
(global-set-key "\C-xO" #'(lambda ()
(interactive)
(other-window -1)))
2013-11-03 03:18:16 +00:00
;; Setup browse-key-ring
(require 'browse-kill-ring) ;; ELPA
(global-set-key "\C-cy" 'browse-kill-ring)
;; adds the given function mode to each element of the given-hooks
(defun activate-mode-with-hooks (mode given-hooks)
(while given-hooks
(add-hook (car given-hooks)
mode)
(setq given-hooks (cdr given-hooks))))
;; linum mode for pretty line numbering
(require 'linum) ;; Built-in
;; right justify the numbers and add a space between them and the text in the given buffer
(setq linum-format
(lambda (line)
(propertize (format
(let ((w (length (number-to-string
(count-lines (point-min) (point-max))))))
(concat "%" (number-to-string w) "d "))
line)
'face 'linum)))
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; code-modes is a list of mode hooks (for programming langs only)
2013-11-03 03:18:16 +00:00
(defvar code-modes '(sml-mode-hook scheme-mode-hook emacs-lisp-mode-hook c-mode-hook c++-mode-hook python-mode-hook lua-mode-hook python-mode-hook haskell-mode-hook php-mode-hook perl-mode-hook lisp-mode-hook clojure-mode-hook ruby-mode-hook erlang-mode-hook sh-mode-hook java-mode-hook scala-mode-hook js-mode-hook))
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; activate linum-mode in all buffers used for programming
(activate-mode-with-hooks (lambda () (linum-mode 1)) code-modes)
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; activate flyspell-prog-mode for all buffers used for programming
(activate-mode-with-hooks 'flyspell-prog-mode code-modes)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; use flyspell-mode in 'non-code' text like modes (Eg. org-mode, markup modes and magit-log-edit-mode)
(activate-mode-with-hooks 'flyspell-mode '(text-mode-hook markdown-mode-hook latex-mode-hook org-mode-hook magit-log-edit-mode-hook mu4e-compose-mode-hook))
;; Enjoy a game of Sudoku on some downtime
(require 'sudoku) ;; ELPA
;; Add collection of themes path
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
;; Use the built-in theming in emacs 24
(load-theme 'manoj-transparent t)
;; On the creation of each frame checks whether it is a XWindow and if so sets
;; the background to black and the foreground to WhiteSmoke
;; (add-hook 'after-make-frame-functions
;; (lambda (frames)
;; (select-frame frame)
;; (if window-system (progn
;; (set-background-color "black")
;; (set-foreground-color "WhiteSmoke")))))
;; Set default tramp method to ssh (for security purposes)
(setq tramp-default-method "ssh")
2013-11-03 03:18:16 +00:00
;; Set the prompt pattern tramp searches for in order to send commands to the remote shell
(setq tramp-shell-prompt-pattern "^[^$>\n]*[#$%>] *\\(\[[0-9;]*[a-zA-Z] *\\)*")
;; Setup ibuffer (interactive buffer)
(global-set-key "\C-x\C-b" 'ibuffer)
(autoload 'ibuffer "ibuffer" "List buffers." t)
;; Setup ido-mode
(ido-mode t)
;; Require ibuffer extentions (used for ibuffer-never-show-predicates)
(require 'ibuf-ext) ;; Built-in
(add-to-list 'ibuffer-never-show-predicates "^\\*slime-events\\*$")
(add-to-list 'ibuffer-never-show-predicates "^\\*Completions\\*$")
(add-to-list 'ibuffer-never-show-predicates "^\\*tramp/.*\\*$")
2013-11-03 03:18:16 +00:00
;; Enable ibuffer-vc extension
;; TODO: enable along side my pre existing filter groups using (ibuffer-vc-generate-filter-groups-by-vc-root).
;; This cannot be done in the ibuffer-saved-filters because ibuffer-vc-generate... returns a list of cons
;; cells but we need this to be dynamic (use a hook like ibuffer-load-hook)
(require 'ibuffer-vc)
;; Filter ibuffers (similar to gnus)
(setq ibuffer-saved-filter-groups
2013-11-03 03:18:16 +00:00
'(("default"
("dired" (mode . dired-mode))
("config" (or
(name . "^\\.xinitrc")
(name . "^\\.bashrc")
(name . "^\\.bash_profile")
(name . "^\\.zshrc")
(name . "^xmonad\\.hs")
(name . "^\\.emacs")
(name . "^\\.gnus")
(name . "^\\.xmobarrc")
(name . "^\\.Xdefaults")
(name . "^\\.Xresources")
2013-11-03 03:18:16 +00:00
(name . "^\\.screenrc")
(name . "^\\.xbindkeysrc")
(name . "^\\.racketrc")
(name . "^\\.ghci")
(name . "\w*\\.service")
(name . "\w*\\.socket")
(name . "^dunstrc")
(name . "^\\.mpdconf")
(name . "^\\.conkerorrc")))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
("markup" (or
(mode . xml-mode)
(mode . html-mode)
(mode . haml-mode)
(mode . markdown-mode)
(mode . latex-mode)))
2013-11-03 03:18:16 +00:00
("code" (or
(mode . c-mode)
(mode . c++-mode)
(mode . perl-mode)
(mode . lua-mode)
(mode . clojure-mode)
(mode . java-mode)
(mode . python-mode)
(mode . ruby-mode)
(mode . emacs-lisp-mode)
(mode . lisp-mode)
(mode . sh-mode)
(mode . scheme-mode)
(mode . haskell-mode)
(mode . scala-mode)
(mode . php-mode)
(mode . css-mode)
(mode . sass-mode)
(mode . scss-mode)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(mode . js-mode)
(mode . sql-mode)))
2013-11-03 03:18:16 +00:00
("REPL" (or
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(mode . geiser-repl-mode)
2013-11-03 03:18:16 +00:00
(mode . slime-repl-mode)
(mode . inferior-python-mode)
(mode . ipython-mode)
(mode . inferior-haskell-mode)
(mode . inferior-lisp-mode)
(mode . eshell-mode)
(mode . inferior-scheme-mode)
(mode . inferior-tcl)
(mode . erlang-shell-mode)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(mode . sql-interactive-mode)))
2013-11-03 03:18:16 +00:00
("git" (or
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(name . "^\\*magit: .*\\*$") ;; this regxp could be better
2013-11-03 03:18:16 +00:00
(mode . magit-mode)
(mode . magit-diff-mode)
(mode . magit-log-mode)
(mode . magit-commit-mode)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(mode . magit-log-mode)
(mode . magit-wazzup-mode)
(mode . magit-process-mode)))
("bookmarks" (or
(name . "^\\*Bookmark List\\*$")))
("help" (or
(mode . help-mode)
(mode . apropos-mode)
(mode . info-mode)
(mode . man-mode)))
("messages" (or
(name . "^\\*geiser messages\\*$")
(name . "^\\*Shell Command Output\\*$")))
2013-11-03 03:18:16 +00:00
("planner" (or
(name . "^\\*Calendar\\*$")
(name . "^diary$")
(mode . muse-mode)))
("emacs" (or
(name . "^\\*scratch\\*$")
(name . "^\\*Messages\\*$")
(name . "^\\*Backtrace\\*$")
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(name . "^\\*Compile-Log\\*$")
(mode . ediff-meta-mode)
(mode . browse-kill-ring-mode)
2013-11-03 03:18:16 +00:00
(mode . package-menu-mode)
(mode . compilation-mode)))
("org" (or
(mode . org-mode)
(name . "^\\.org$")
(name . "^\\.org.gpg$")))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
("mu4e" (or
(mode . mu4e-main-mode)
(mode . mu4e-compose-mode)
(mode . mu4e-headers-mode)
(mode . mu4e-view-mode)
(name . "^mu4e-update$")
(name . "^\\*trace of SMTP session to .*\\*$")))
2013-11-03 03:18:16 +00:00
("gnus" (or
(mode . message-mode)
(mode . bbdb-mode)
(mode . mail-mode)
(mode . gnus-group-mode)
(mode . gnus-summary-mode)
(mode . gnus-article-mode)
(name . "^\\.bbdb$")
(name . "^\\.newsrc-dribble"))))))
(add-hook 'ibuffer-mode-hook
(lambda ()
(ibuffer-switch-to-saved-filter-groups "default")))
;; Setup oauth2 (required by google-contacts)
(require 'oauth2-autoloads) ;; ELPA
;; Setup google-contact
(require 'google-contacts) ;; AUR: emacs-google-contacts
(require 'google-contacts-gnus) ;; AUR: emacs-google-contacts
2013-11-03 03:18:16 +00:00
;; Setup nav
(require 'nav) ;; ELPA
(nav-disable-overeager-window-splitting)
(global-set-key "\C-cn" 'nav-toggle)
;; setup html renderer w3m and external browser conkeror
(require 'w3m-load) ;; AUR: emacs-w3m-cvs
(setq browse-url-browser-function 'w3m-browse-url
browse-url-generic-program "conkeror"
w3m-use-cookies t)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
;; setup magit for git (being used though elpa [auto-loaded])
;;(require 'magit) ;; ELPA
(global-set-key "\C-xS" 'magit-status)
2013-11-03 03:18:16 +00:00
(setq magit-commit-signoff t)
;;setup vc-darcs ;; ELPA
(add-to-list 'vc-handled-backends 'DARCS)
(autoload 'vc-darcs-find-file-hook "vc-darcs")
(add-hook 'find-file-hooks 'vc-darcs-find-file-hook)
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
2013-11-03 03:18:16 +00:00
;; Setup PKGBUILD mode ;; Community (archlinux)
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
(autoload 'pkgbuild-mode "pkgbuild-mode.el" "PKGBUILD mode." t)
(setq auto-mode-alist (append '(("/PKGBUILD$" . pkgbuild-mode)) auto-mode-alist))
;; setup php-mode
(autoload 'php-mode "php-mode.el" "Php mode." t) ;; ELPA
(setq auto-mode-alist (append '(("/*.\.php[345]?$" . php-mode)) auto-mode-alist))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Setup sql-mode (use mysql instead of ansi)
(setq sql-product 'mysql)
2013-11-03 03:18:16 +00:00
;; Setup zencoding-mode
(require 'emmet-mode)
;; Disable C-j keybinding set by zencoding-mode and replace it with 'C-c j'
(define-key emmet-mode-keymap "\C-j" nil)
(define-key emmet-mode-keymap "\C-cj" 'emmet-expand-line)
;; Add appropriate hooks to sgml-mode
(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
(add-hook 'css-mode-hook 'emmet-mode) ;; enable Emmet's css abbreviation.
(add-hook 'emmet-mode-hook (lambda () (setq emmet-indentation 2))) ;; indent 2 spaces.
;; Setup mmm-mode for multiple mode regions in the same buffer
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(require 'mmm-mode)
2013-11-03 03:18:16 +00:00
;;(setq mmm-global-mode 'maybe)
;; Set default lisp program
(setq inferior-lisp-program "/usr/bin/sbcl")
;; Since there is no support for the kawa implementation of scheme
(defun run-kawa ()
"Run Kawa Scheme in an Emacs buffer."
(interactive)
(require 'cmuscheme) ;; Built-in
(let ((scheme-program-name "/usr/bin/kawa"))
(run-scheme scheme-program-name)))
;; Set usable lisp implementations
(setq slime-lisp-implementations
'((sbcl ("/usr/bin/sbcl" ""))
(clisp ("/usr/bin/clisp" "-K base"))
(clojure ("/usr/bin/clj" ""))))
;; Function to start and/or connect to slime
(defun start-slime ()
(interactive)
(unless (slime-connected-p)
(save-excursion (slime))))
;; Setup slime mode *TODO* drop in slime from ELPA
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime) ;; AUR: emacs-slime-cvs
(slime-setup '(slime-fancy))
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; Setup swank-clojure-mode
(add-to-list 'load-path "/usr/share/emacs/site-lisp/swank-clojure")
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
(require 'swank-clojure) ;; ELPA
(add-hook 'clojure-mode-hook
'(lambda ()
(define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last-sexp)
(define-key clojure-mode-map "\C-x\C-e" 'lisp-eval-last-sexp)))
2013-11-03 03:18:16 +00:00
;; TODO: functionality needs to be re-written; assoc library obsolete
;; (eval-after-load "slime"
;; `(progn
;; (require 'assoc) ;; Built-in (OBSOLETE)
;; (setq swank-clojure-classpath
;; (list "/usr/share/clojure/clojure.jar"
;; "/usr/share/clojure/clojure-contrib.jar"
;; "/usr/share/emacs/site-lisp/swank-clojure/src"))
;; (aput 'slime-lisp-implementations 'clojure
;; (list (swank-clojure-cmd) :init 'swank-clojure-init))))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Setup Auctex
(load "auctex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
(require 'tex)
(TeX-global-PDF-mode t)
;; Setup emacs-org-mode
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on
2013-11-03 03:18:16 +00:00
(setq org-return-follows-link t
org-log-done 'time
org-src-fontify-natively t
org-enforce-todo-dependencies t)
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; Enable org-mode capture
(setq org-default-notes-file "~/.org/notes.org") ;; (concat org-directory "/notes.org"))
(define-key global-map "\C-cc" 'org-capture)
(setq org-capture-templates
'(("t" "General Todo" entry
(file+olp "~/.org/notes.org" "Notes" "Tasks" "General")
"* TODO %?\n %i\n" :kill-buffer)
("f" "Todo in current file" entry
(file+olp "~/.org/notes.org" "Notes" "Tasks" "Per-File")
"* TODO %? %i\n See: %a")
("r" "Remember something" entry
(file+olp "~/.org/notes.org" "Notes" "Things to Remember")
"* %?" :kill-buffer)
("j" "Journal" entry
(file+datetree "~/.org/notes.org")
"* %?\nEntered on %U\n %i\n %a" :kill-buffer)))
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; Add additional languages for org-babel (now part of org-mode)
(org-babel-do-load-languages
'org-babel-load-languages
'((haskell . t)))
;; Set keybindings for org-mode
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
2013-11-03 03:18:16 +00:00
;; Setup coq-mode ;; AUR: coq
(require 'coq)
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; Setup haskell-mode ;; ELPA
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
;;(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
;;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
;; Set inferior haskell default executable
(setq haskell-program-name "/usr/bin/ghci")
2013-11-03 03:18:16 +00:00
;; Setup hlint ;; ELPA
;; (require 'flymake-hlint)
;; (add-hook 'haskell-mode-hook 'flymake-hlint-load)
;; Setup ghc (requires ghc-mod from cabal) ;; ELPA
(autoload 'ghc-init "ghc" nil t)
(add-hook 'haskell-mode-hook (lambda () (ghc-init)))
;; Setup ensime ;; AUR
(add-to-list 'load-path "/usr/share/ensime/elisp")
(add-to-list 'exec-path "/usr/share/ensime")
(require 'ensime)
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
;; Setup python-mode auto-required by package.el (ELPA)
(setq auto-mode-alist (append '(("/*.\.py$" . python-mode)) auto-mode-alist))
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; Setup ipython-mode
;; (setq py-python-command "/usr/bin/ipython")
(require 'ipython) ;; ELPA
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
;; Setup emacs-lua-mode
(setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist)) ;; ELPA
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
;; Setup emacs-erlang-mode (ELPA)
(setq erlang-root-dir "/usr/lib/erlang")
(setq exec-path (cons "/usr/lib/erlang/bin" exec-path))
(setq auto-mode-alist (append '(("\.erl$" . erlang-mode)) auto-mode-alist))
;; Setup enhanced scheme/racket mode consisting of geiser, quack and paredit
;; Setup geiser
(require 'geiser) ;; ELPA
2013-11-03 03:18:16 +00:00
;; Setup auto-completion for geiser (ELPA)
(require 'ac-geiser)
(add-hook 'geiser-mode-hook 'ac-geiser-setup)
(add-hook 'geiser-repl-mode-hook 'ac-geiser-setup)
(eval-after-load "auto-complete"
'(add-to-list 'ac-modes 'geiser-repl-mode))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Make struct stand out in scheme-mode for racket
(defun racket-faces ()
(font-lock-add-keywords nil
'(("(struct \\(\\sw+\\)" 1 font-lock-function-name-face)
("(\\(struct\\)" 1 font-lock-keyword-face)
("(\\(λ\\)" 1 font-lock-keyword-face))))
(add-hook 'scheme-mode-hook 'racket-faces)
(add-hook 'geiser-repl-mode-hook 'racket-faces)
;; Setup scribble mode (custom .el from ~/.emacs.d/site-lisp-extra)
;; See: http://www.neilvandyke.org/scribble-emacs/
(require 'scribble)
2013-11-03 03:18:16 +00:00
;; Setup quack
(require 'quack) ;; ELPA
;; Setup paredit
(require 'paredit) ;; ELPA
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(defvar lispy-langs-hooks '(lisp-mode-hook lisp-interaction-mode-hook emacs-lisp-mode-hook scheme-mode-hook c-mode-hook c++-mode-hook python-mode-hook geiser-repl-mode-hook))
2013-11-03 03:18:16 +00:00
;; Apply paredit-mode to modes listed in lispy-langs-hooks
(activate-mode-with-hooks (lambda () (paredit-mode 1)) lispy-langs-hooks)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Highlight sexp's in lispy languages
(activate-mode-with-hooks (lambda () (highlight-sexp-mode)) lispy-langs-hooks)
;; Paredit binds to C-j globally and thus disables the binding to
;; eval-print-last-sexp in emacs-lisp-mode (e.g *scratch*, etc..)
(add-hook 'emacs-lisp-mode-hook
'(lambda ()
(define-key emacs-lisp-mode-map "\C-xj" 'eval-print-last-sexp)))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Match paren's in given modes [to apply globally do (show-paren-mode 1)]
2013-11-03 03:18:16 +00:00
(activate-mode-with-hooks (lambda () (show-paren-mode)) lispy-langs-hooks)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Highlight paren's near point
(require 'highlight-parentheses)
(activate-mode-with-hooks (lambda () (highlight-parentheses-mode)) lispy-langs-hooks)
;; Setup rainbow-delimiters
2013-11-03 03:18:16 +00:00
(require 'rainbow-delimiters) ;; ELPA
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(global-rainbow-delimiters-mode)
2013-11-03 03:18:16 +00:00
;; Setup rainbow-mode ;; ELPA
(require 'rainbow-mode)
(add-hook 'css-mode-hook 'rainbow-mode)
;; upcomming functionallity: toggle paredit-mode due to annoying things like wrapping parens when a mistake is made
;; known issue..if paredit-mode is turned on when there are unbalanced parens an error is reported
(defun toggle-paredit-mode ()
(let ((active-minor-modes (list)))
(mapatoms (lambda (sym)
(when (and (symbolp sym) (assq sym minor-mode-alist) (symbol-value sym))
(push sym active-minor-modes))))
(if (member 'paredit-mode active-minor-modes) (paredit-mode -1) (paredit-mode 1))))
(setq geiser-repl-use-other-window nil)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(setq geiser-active-implementations '(racket guile))
Did a variety of changes documented by file below; Key changes include: * finally have multiple smtp accounts working with gnu/emacs! * using dunst (a notification-daemon) * fixes to mpd's service files mpd.{service,socket} to allow for socket activation via dbus/systemd .authinfo.gpg: * now holds the information for all my email accounts .bashrc: * set LANG and LC_MESSAGE variables .bin/xmonadClose.sh: * added support for restart which was missed but trivial to implement .config/dunst/dunstrc: * slightly modified version of skeletal dunstrc provided by the dunst package .config/mc/ini: * automatic changes made by mc .config/mc/panels.ini: * deleted; no need to keep this in the git repo since it is modified automatically by mc to save the panel's state/s .config/systemd/user/dunst.service: * a service file to manage dunst - a customizable and lightweight notification-daemon .config/systemd/user/mpd.service: * now uses socket activation to allow mpd to be used over the network (via mpd.socket) .config/systemd/user/mpd.socket: * a socket file denoting what port/s to open when mpd.service is run .emacs: * disable pastebin extension because pastebin is a insane and the api has changed * set the mail function to smtpmain-send-it .emacs.d/themes/manoj-transparent-theme.el: * fixed minor error caused by using "nill" in place of nil * change the marked text background color from blue to gray19 .gitconfig: * set default name * set some fancy colors .gnus: * finally now supports multiple smtp accounts! * some minor cleanup * disabled gnus daemon until i spend some time looking into its uses .local/share/mc/skins/gotar-mod.ini: * set the background of the currently selected file to gray in place of default (transparent) so that in transparent terminals the currently selected file is noticeably highlighted .mpdconf: * no real changes; comments .ncmpcpp/config: * added support for notification using notify-send (libnotify and dunst) .screenrc: * set 256 bit color for urxvt .xinitrc: * set GENERAL_SCREEN instead of exporting it * shrink the case expression responsible for determining which wm to launch .xmonad/xmonad.hs: * doMaxFloat pavucontrol instead of doFullFloat .zshrc: * set LANG and LC_MESSAGE variables * added support to temporarily disable unclutter when running a command * now the alias 'qemu' disables unclutter before running qemu with kvm enabled * TODO: find commonalities between .bashrc and .zshrc and create a second shell script that does the common tasks; then the new shell script can be sourced from either .bashrc or .zshrc Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2013-03-19 22:36:19 +00:00
;; setup pastebin.el for use with pastebin.com *BROKEN*
;(require 'pastebin) ;; ELPA
;; yasnippet, auto-complete-mode and flyspell do not play nicely with one another due to
;; a conflict with the context of their tab binding *OLD*
;; hideshow-org being depreciated in my config due to conflicting key bindings with yasnippet
;; and flyspell *TODO*
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
;; Make hs-minor-mode act like org-mode for code folding
;;(add-to-list 'load-path "/usr/share/emacs/site-lisp/hideshow-org")
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
;; (require 'hideshow-org)
;; (global-set-key "\C-ch" 'hs-org/minor-mode)
;; Add automatic activation of hs-org/minor-mode in the below major-modes
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
;; (add-hook 'c-mode-common-hook 'hs-org/minor-mode)
;; (add-hook 'emacs-lisp-mode-hook 'hs-org/minor-mode)
;; (add-hook 'java-mode-hook 'hs-org/minor-mode)
;; (add-hook 'lisp-mode-hook 'hs-org/minor-mode)
;; (add-hook 'sh-mode-hook 'hs-org/minor-mode)
;; (add-hook 'python-mode-hook 'hs-org/minor-mode)
;; (add-hook 'scheme-mode-hook 'hs-org/minor-mode)
2013-11-03 03:18:16 +00:00
;; Setup isearch+
(require 'isearch+)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Setup bookmark+
(require 'bookmark+)
2013-11-03 03:18:16 +00:00
;; Setup ace-jump-mode
(autoload
'ace-jump-mode
"ace-jump-mode"
"Emacs quick move minor mode"
t)
(define-key global-map (kbd "C-c SPC") 'ace-jump-mode)
;; Setup expand-region ;; ELPA
(require 'expand-region)
(global-set-key (kbd "C-=") 'er/expand-region)
;; Setup multiple-cursons ;; ELPA
(require 'multiple-cursors)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; Setup fancy auto-complete
(require 'auto-complete-config) ;; ELPA
;;(add-to-list 'ac-dictionary-directories "/usr/share/emacs/site-lisp/auto-complete/ac-dict")
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
(ac-config-default)
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
;; Set trigger keys so yasnippet and auto-complete play nicely. If tab is pressed and the word at point exists
;; in yasnippet, then yassippet will be used; otherwise auto-complete will be used.
(ac-set-trigger-key "TAB")
(ac-set-trigger-key "<tab>")
;; Setup yasnippet-mode (not yasnippet-bundle)
(require 'yasnippet) ;; ELPA
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(yas-load-directory "~/.emacs.d/elpa/yasnippet-20140821.38")
(yas-load-directory "~/.emacs.d/snippets")
(yas-global-mode 1)
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; Enable flyspell-mode
(ac-flyspell-workaround)
;; Known Bug: flyspell-mode doesn't play nice with auto-complete-mode
;;(flyspell-mode)
;; Enable autoinsert feature to automagically insert
(require 'autoinsert) ;; Built-in
(auto-insert-mode) ;;; Adds hook to find-files-hook
(setq auto-insert-directory "~/.emacs.d/templates/") ;;; Or use custom, *NOTE* Trailing slash important
(setq auto-insert-query nil) ;;; If you don't want to be prompted before insertion
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(setq autoinsert-tpl-author "Collin J. Doering")
(setq autoinsert-tpl-email "collin.doering@rekahsoft.ca")
;; auto-insert options template and auto-completion
(add-hook 'find-file-hooks 'auto-insert)
(setq auto-insert-directory (concat (getenv "HOME") "/.emacs.d/templates/"))
(setq auto-insert-alist
'(("\\.c$" . ["c-template.c" auto-update-generic-template])
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
("\\.cc\\|cpp$" . ["cpp-template.cc" auto-update-generic-template])
("\\.php$" . ["php-template.php" auto-update-generic-template])
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
("\\.rb$" . ["ruby-template.rb" auto-update-generic-template])
("\\.lua$" . ["lua-template.lua" auto-update-generic-template])
("\\.erl$" . ["erlang-template.erl" auto-update-generic-template])
("\\.sh$" . ["shell-template.sh" auto-update-generic-template])
("\\.rkt$" . ["racket-template.rkt" auto-update-generic-template])
("\\.scm$" . ["scheme-template.scm" auto-update-generic-template])
2011-06-27 20:49:11 +00:00
("\\.clj$" . ["clojure-template.clj" auto-update-generic-template])
("\\.lisp$" . ["lisp-template.lisp" auto-update-generic-template])
("\\.el$" . ["emacs-lisp-template.el" auto-update-generic-template])
("\\.hs$" . ["haskell-template.hs" auto-update-generic-template])
("\\.ml$" . ["ocaml-template.ml" auto-update-generic-template])
("\\.sml$" . ["sml-template.sml" auto-update-generic-template])
2013-11-03 03:18:16 +00:00
("\\.py$" . ["python-template.py" auto-update-generic-template])
("\\.java$" . ["java-template.java" auto-update-generic-template])
("\\.scala$" . ["scala-template.scala" auto-update-generic-template])
("\\.htm\\|html$" . ["html-template.html" auto-update-generic-template])
("\\.js$" . ["java-script-template.js" auto-update-generic-template])
("\\.css$" . ["css-template.css" auto-update-generic-template])
("\\.scss$" . ["scss-template.scss" auto-update-generic-template])
("\\.sass$" . ["sass-template.sass" auto-update-generic-template])
("\\.haml$" . ["haml-template.haml" auto-update-generic-template])
("\\.markdown$" . ["markdown-template.markdown" auto-update-generic-template])
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
("\\.tex$" . ["latex-template.tex" auto-update-generic-template])))
(setq auto-insert 'other)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; TODO: remove interactive-ness from auto-update-generic-template as it's not needed
;; and there only as a workaround. Python and PHP templates are not filled for
;; some unknown reason.
(defun auto-update-generic-template ()
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(interactive)
(save-excursion
;; Replace @!@FILENAME@!@ with file name sans suffix
(while (search-forward "@!@FILENAME@!@" nil t)
(save-restriction
(narrow-to-region (match-beginning 0) (match-end 0))
(replace-match (file-name-sans-extension (file-name-nondirectory buffer-file-name)) t))))
(save-excursion
;; Replace @!@FILE@!@ with file name
(while (search-forward "@!@FILE@!@" nil t)
(save-restriction
(narrow-to-region (match-beginning 0) (match-end 0))
(replace-match (file-name-nondirectory buffer-file-name) t))))
(save-excursion
;; replace @!@DATE@!@ with today's date
(while (search-forward "@!@DATE@!@" nil t)
(save-restriction
(narrow-to-region (match-beginning 0) (match-end 0))
(replace-match "")
(insert-date))))
(save-excursion
;; Replace @!@YEAR@!@ with the current year
(while (search-forward "@!@YEAR@!@" nil t)
(save-restriction
(narrow-to-region (match-beginning 0) (match-end 0))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(replace-match (format-time-string "%Y" (current-time))))))
(save-excursion
;; Replace @!@AUTHOR@!@ with the current year
(while (search-forward "@!@AUTHOR@!@" nil t)
(save-restriction
(narrow-to-region (match-beginning 0) (match-end 0))
(replace-match "")
(insert-author))))
(save-excursion
;; Replace @!@EMAIL@!@ with the current year
(while (search-forward "@!@EMAIL@!@" nil t)
(save-restriction
(narrow-to-region (match-beginning 0) (match-end 0))
(replace-match "")
(insert-author-email)))))
;; Insert current date at cursor in the currently active buffer
(defun insert-date ()
"Insert today's date into buffer"
(interactive)
(insert (format-time-string "%b %e, %Y" (current-time))))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(defun insert-author ()
"Insert author name at point"
(interactive)
(insert autoinsert-tpl-author))
(defun insert-author-email ()
"Insert author email at point"
(interactive)
(insert autoinsert-tpl-email))
2013-11-03 03:18:16 +00:00
;; (defun open-scratch-buffer ()
;; "Opens the scratch buffer; if none exists creates one."
;; (interactive)
;; (let ((scratch-buffer (get-buffer "*scratch*")))
;; (if (null scratch-buffer) (with-current-buffer (get-buffer-create "*scratch*")
;; (insert initial-scratch-message)
;; (lisp-interaction-mode)))
;; (switch-to-buffer "*scratch*")))
(defvar scratch-buffer-alist '((python-mode . "# This buffer is for notes you don't want to save, and for Lisp evaluation.\n# If you want to create a file, visit that file with C-x C-f,\n# then enter the text in that file's own buffer.")))
(defun open-scratch-buffer (&optional buf-mode buf-name msg)
"Opens a scratch buffer; if none exists creates one. When called with the universal argument (C-u) will ask what mode to use for the scratch buffer."
(interactive
(cond ((equal current-prefix-arg nil) ;; universal argument not called
(list initial-major-mode "*scratch*" initial-scratch-message))
((equal current-prefix-arg '(4)) ;; Universal argument called (C-u)
(let* ((buf-mode (read-command "Mode: " initial-major-mode))
(buf-name (if (equal buf-mode initial-major-mode)
"*scratch*"
(concat "*scratch:" (symbol-name buf-mode) "*")))
(msg ""))
(list buf-mode buf-name msg)))))
(let* ((scratch-buffer (get-buffer buf-name)))
;; check if the scratchpad is open. If not create it, change its mode and insert message text at the top of the buffer
(if (null scratch-buffer)
(with-current-buffer (get-buffer-create buf-name)
(funcall buf-mode)
(insert msg)))
(switch-to-buffer buf-name)))
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; Bind a key to grab a scratchpad
2013-11-03 03:18:16 +00:00
(define-key ctl-x-4-map "s" 'open-scratch-buffer)
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
2013-11-03 03:18:16 +00:00
;; TODO: make a function to toggle the eshell; given a the universal argument the following can occur:
;; - if numerical then opens the nth scratch buffer "*eshell*<n>"
;; - if no args then open a new eshell
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; Bind a key to switch to eshell
2013-11-03 03:18:16 +00:00
(define-key ctl-x-4-map "e" 'eshell)
;; Toggles windows split orientation of 2 adjecent windows
;; Thanks to http://www.emacswiki.org/cgi-bin/wiki?ToggleWindowSplit
(defun toggle-window-split ()
(interactive)
(if (= (count-windows) 2)
(let* ((this-win-buffer (window-buffer))
(next-win-buffer (window-buffer (next-window)))
(this-win-edges (window-edges (selected-window)))
(next-win-edges (window-edges (next-window)))
(this-win-2nd (not (and (<= (car this-win-edges)
(car next-win-edges))
(<= (cadr this-win-edges)
(cadr next-win-edges)))))
(splitter
(if (= (car this-win-edges)
(car (window-edges (next-window))))
'split-window-horizontally
'split-window-vertically)))
(delete-other-windows)
(let ((first-win (selected-window)))
(funcall splitter)
(if this-win-2nd (other-window 1))
(set-window-buffer (selected-window) this-win-buffer)
(set-window-buffer (next-window) next-win-buffer)
(select-window first-win)
(if this-win-2nd (other-window 1))))))
;; TODO: Modify the below function to accept the universal argument.
;; Specifically an integer argument (n) where:
;; - if negative denotes backwards rotation repeated |n| times
;; - if positive denotes forwards rotation repeated n times
;; - otherwise, no numerical value is given for the universal argument; ignore.
;; Rotates windows
;; Thanks to http://www.emacswiki.org/emacs/TransposeWindows
(defun rotate-windows ()
"Rotate your windows"
(interactive)
(cond
((not (> (count-windows) 1))
(message "You can't rotate a single window!"))
(t
(let ((i 0)
(num-windows (count-windows)))
(while (< i (- num-windows 1))
(let* ((w1 (elt (window-list) i))
(w2 (elt (window-list) (% (+ i 1) num-windows)))
(b1 (window-buffer w1))
(b2 (window-buffer w2))
(s1 (window-start w1))
(s2 (window-start w2)))
(set-window-buffer w1 b2)
(set-window-buffer w2 b1)
(set-window-start w1 s2)
(set-window-start w2 s1)
(setq i (1+ i))))))))
;; Assign keybinding to toggle split orientation of 2 adjacent windows, and to rotate windows
(define-key ctl-x-4-map "t" 'toggle-window-split)
(global-set-key "\C-cr" 'rotate-windows)
;; Force ediff sessions to run in the same frame
(setq ediff-window-setup-function 'ediff-setup-windows-plain)
;; This is now done ine ~/.Xresources
;; Remove menu-bar, tool-bar, and scroll-bars
(menu-bar-mode -1)
;;(tool-bar-mode -1)
;;(scroll-bar-mode -1)
;;(set-default-font "Terminus-12")
2011-06-21 03:26:45 +00:00
;; Stop startup screen
(setq inhibit-startup-screen t)
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; Set some eshell options
(setq eshell-scroll-to-bottom-on-input t)
;; *BROKEN*
;;(setq eshell-scroll-to-bottom-on-output t)
;; Commands that require a little more then a dumb-term
(setq eshell-visual-commands '("vi" "screen" "top" "less" "more" "lynx" "ncftp" "vim" "ncmpcpp" "irssi" "mc" "alsamixer" "/usr/bin/sudo"))
2013-11-03 03:18:16 +00:00
(defun eshell/catbuf (buffer-name)
"Given a buffer-name returns the contents of said buffer"
(interactive "bBuffer: ")
(save-excursion
(let ((code-buf (get-buffer buffer-name)))
(if (null code-buf) (concat "The buffer given \"" buffer-name "\" does not exist")
(set-buffer code-buf)
(buffer-string)))))
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
(defun eshell/find-file-ext (fp)
2013-11-03 03:18:16 +00:00
"Finds a single file or a list of files matching a regxp and returns a list of their respective buffers"
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
(interactive)
(if (listp fp) (mapcar #'find-file fp)
(list (find-file fp))))
(defun eshell/ff (fp &rest other-fps)
"A FP is either a file path (relative or absolute) or a regexp which eshell converts to a
list of stings (file paths) which match the regexp (likely using file-expand-widcards).
eshell/ff takes one or more file paths and opens them in the current buffer returning a list
consisting of lists of buffers opened by each respective FP argument."
(interactive)
Some major revisions as i have recently replaced my desktop. Namely: * switched to systemd for user level daemons and startup programs originally run from .xinitrc * beefed up the logout menu implemented by .bin/xmonadClose.sh to support pretty well all windows-managers (with some minor modification) and now with support for suspend and hibernate .Xdefaults: * did a little rearrangement to make things pretty * added the clipboard extension .authinfo.gpg: .authinfo-cd.gpg: * encrypted authinfo files for gnus (emacs) .bash_profile: * now checks if ~/.bashrc is a file and then executes it instead of just assuming .bashrc: * added a few new aliases * modified path to include ~/.bin .bin/xmonadClose.sh: * now supports pretty well any window manager with minor modification (just edit the actionNames and actionExecs arrays respective elements) * now brings up a dmenu options menu to select one of cancel, logout, suspend, hybrid-sleep, hibernate, or shutdown * uses xdotool to send a hidden 'kill switch' to xmonad upon 'logout' * uses systemctl to suspend, hybrid-sleep and hibernate * uses the classic shutdown command for shutdown .config/mc/: * moved the config files from .mc .config/systemd/user/: * all user instance systemd service files go here default.target.wants/: * contains a symbolic link to all the currently enabled service files emacs.service: * starts the emacs daemon mpd.service: * starts a user level instance of mpd using the config ~/.mpdconf udiskie.service: * starts udiskie (a user level daemon for automounted media using udisk) urxvtd.service: * starts the urxvt daemon unclutter.service: * starts the uncluttered program trayer.service: * starts trayer using the options: --monitor 1 --edge top --align right --expand true --width 4 --height 2 --transparent true --tint 0x000000 xbindkeys.service: * starts xbindkeys xcompmgr.service: * starts xcompmgr xscreensaver.service: * starts xscreensaver .emacs: * added support for magit * added support for ipython * dropped in ELPA version of swank-clojure in place of the AUR version * preparing to use babel (part of org more for use with code) * upgraded yas to the most recent version from ELPA; need to smooth out some minor issues * python-mode is currently commented out in config but working; dropped in ELPA version in place of the AUR version i had previous * disabled gieser (in the process of dropping in the ELPA version..just ran into some hitch) * add a template for ruby to .emacs.d/templates .mpdconf: * user instance mpd config .screenrc: * re-enabled ncmpcpp in place of cmus as i'm using mpd now * disable mc in screen because it doesn't start correctly; mc is available through my xmonad scratchpad "mc" .vimrc: * enabled syntax highlighting .xbindkeysrc: * switched music keybindings from cmus-remote commands to there respective mpc commands * switched www key to conkeror in place of firefox .xinitrc: * use systemd --user to run a user instance of systemd to run startup programs generally run from this script. The programs i have written unit files are specified above and left as comments in this file. .xmobarrc: * my ethernet interface is now called 'eno1' not 'eth0' * TODO: need to setup wireless status xmobar widget for 'wlp7s0' .xmonad/xmonad.hs: * added keybinding for auto-umounting any disk auto-mounted by udiskie (Mod+shift+control u) * now using new .bin/xmonadClose.sh to kill session in a few different ways (Mod+shift q) * added a keybinding to toggle the status bar (xmobar) using (Mod b) * added better support for some full screen games: supertux2, doom3, steam and hl2 * set opacity on all emacs and gvim windows to 13/16 (btw this is done for urxvt using a property in .Xdefaults .xscreensaver: * an auto-generated file by xscreensaver-demo; may consider removing in the future as it can always be auto-generated but its nice to have all my screensavers saved and ready .xsession: * not currently using since i use slim but here for compatibility with gdm,kdm and other de's .zshrc: * some auto-generated changes thanks to compinstall * added a few new aliases * modified path to include ~/.bin Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2013-03-11 03:26:58 +00:00
(mapcar #'eshell/find-file-ext (cons fp other-fps)))
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
(defun eshell/clear ()
"04Dec2001 - sailor, to clear the eshell buffer."
(interactive)
(let ((inhibit-read-only t))
(erase-buffer)))
;; (add-to-list 'load-path "~/.emacs.d/el-get/el-get")
Various day-to-day changes made summarized as follows: .conkerorrc: * added better support for mime-type handling (pdf, ps, torrent, ...) .emacs: * added PKGBUILD mode * disabled hs-org/minor-mode because of it not playing well with auto-complete-mode and flyspell * disabled yasnippet for the time being (look into auto-complete-mode and flyspell issues) * disabled elget (not functioning plus there is the ELPA so whats the point?) .gnus: * set default account to rekahsoft@gmail.com (previously was only able to send through collin.doering (SMTP) and recieve mail through rekahsoft (IMAP)) * using encrypted autoinfo files now * TODO: get multiple IMAP/SMTP accounts working .screenrc: * disabled ncmpcpp screen (no longer using mpd sadly due to pulseaudio issues * disabled nvlc screen .xinitrc: * disabled trayer (no apps use it so whats the point) (still need to modify .xmobar to leave no gap on the right side of the screen) .xmonad/xmonad.hs: * beginning utilization of a few new modules from XMonad.Contrib including: - XMonad.Layout.Tabbed - XMonad.Layout.Sublayouts - XMonad.Layout.WindowNavigation - XMonad.Layout.BoringWindows Note: many of the added extensions above are not being used; just being prepared to be integrated into the environment (commented out) a few other extensions are being considered as well including: CycleWS, XMonad.Actions.TopicSpace and DynamicWorkspaces * disabled transmission-gtk scratchpad in preference of transmission-remote cli .zshrc: * new tab completion generated by compinstall (much nicer then previous) Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-06-18 21:00:34 +00:00
;; *BROKEN*..can't connect to dbus for some reason?
;; ;; Setup el-get
;; (unless (require 'el-get nil t)
;; (with-current-buffer
;; (url-retrieve-synchronously
;; "https://raw.github.com/dimitri/el-get/master/el-get-install.el")
;; (end-of-buffer)
;; (eval-print-last-sexp)))
;; ;; Synchronize el-get
;; (el-get 'sync)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
;; Setup email using mu4e (offlineimap in the background) and smtpmail
(require 'mu4e)
(require 'smtpmail)
(setq mail-user-agent 'mu4e-user-agent
mu4e-get-mail-command "mbsync -a"
mu4e-update-interval 300
mu4e-user-mail-address-list (list "collin.doering@gmail.com" "rekahsoft@gmail.com")
message-kill-buffer-on-exit t
mu4e-use-fancy-chars t
mu4e-sent-messages-behavior 'delete
mu4e-confirm-quit nil
mu4e-headers-date-format "%d/%b/%Y %H:%M" ; date format
message-signature "Collin J. Doering\n\nhttp://rekahsoft.ca\nhttp://blog.rekahsoft.ca\n"
mu4e-compose-signature message-signature
message-signature-insert-empty-line t
mu4e-html2text-command "pandoc -f html -t asciidoc"
mu4e-view-show-images t
mu4e-view-image-max-width 800
;; Default email for smtp and mu4e
user-mail-address "collin.doering@gmail.com"
;; Setup mu4e default sent and draft folders
mu4e-sent-folder "/collin.doering-gmail/[Gmail].Sent"
mu4e-drafts-folder "/collin.doering-gmail/[Gmail].Drafts"
;; Set location of maildir
mu4e-maildir "~/.mail"
;; Setup smtp defaults
user-full-name "Collin J. Doering"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587
smtpmail-auth-credentials "~/.authinfo.gpg"
smtpmail-stream-type 'starttls
smtpmail-debug-info t
message-send-mail-function 'smtpmail-send-it)
;; Override default mu4e-bookmarks with custom ones
(setq mu4e-bookmarks
'(("flag:unread AND NOT flag:trashed AND NOT maildir:/collin.doering-gmail/[Gmail].Spam AND NOT maildir:/rekahsoft-gmail/[Gmail].Spam" "Unread messages" ?u)
("date:today..now AND NOT maildir:/collin.doering-gmail/[Gmail].Spam AND NOT maildir:/rekahsoft-gmail/[Gmail].Spam" "Today's messages" ?t)
("date:7d..now AND NOT maildir:/collin.doering-gmail/[Gmail].Spam AND NOT maildir:/rekahsoft-gmail/[Gmail].Spam" "Last 7 days" ?w)
("mime:image/*" "Messages with images" ?p)
;; For collin.doering-gmail maildir
("flag:unread AND maildir:/collin.doering-gmail/INBOX AND NOT flag:trashed AND NOT maildir:/collin.doering-gmail/[Gmail].Spam" "Unread messages to collin.doering-gmail" ?z)
("date:today..now AND maildir:/collin.doering-gmail/INBOX AND NOT maildir:/collin.doering-gmail/[Gmail].Spam" "Today's messages to collin.doering-gmail" ?x)
("date:7d..now AND maildir:/collin.doering-gmail/INBOX AND NOT maildir:/collin.doering-gmail/[Gmail].Spam" "Last 7 days (collin.doering-gmail)" ?c)
("mime:image/* AND maildir:/collin.doering-gmail/INBOX" "Messages with images to collin.doering-gmail" ?v)
;; For rekahsoft-gmail maildir
("flag:unread AND maildir:/rekahsoft-gmail/INBOX AND NOT flag:trashed AND NOT maildir:/rekahsoft-gmail/[Gmail].Spam" "Unread messages to rekahsoft-gmail" ?m)
("date:today..now AND maildir:/rekahsoft-gmail/INBOX AND NOT maildir:/rekahsoft-gmail/[Gmail].Spam" "Today's messages to rekahsoft-gmail" ?,)
("date:7d..now AND maildir:/rekahsoft-gmail/INBOX AND NOT maildir:/rekahsoft-gmail/[Gmail].Spam" "Last 7 days (rekahsoft-gmail)" ?.)
("mime:image/* AND maildir:/rekahsoft-gmail/INBOX" "Messages with images to rekahsoft-gmail" ?/)))
;; TODO: consolidate my-mu4e-account-alist and smtp-accounts
(defvar my-mu4e-account-alist
'(("collin.doering-gmail"
(mu4e-sent-folder "/collin.doering-gmail/[Gmail].Sent")
(mu4e-drafts-folder "/collin.doering-gmail/[Gmail].Drafts")
(user-mail-address "collin.doering@gmail.com"))
("rekahsoft-gmail"
(mu4e-sent-folder "/rekahsoft-gmail/[Gmail].Sent")
(mu4e-drafts-folder "/rekahsoft-gmail/[Gmail].Drafts")
(user-mail-address "rekahsoft@gmail.com"))))
(defun my-mu4e-set-account ()
"Set the account for composing a message."
(let* ((account
(if mu4e-compose-parent-message
(let ((maildir (mu4e-message-field mu4e-compose-parent-message :maildir)))
(string-match "/\\(.*?\\)/" maildir)
(match-string 1 maildir))
(completing-read (format "Compose with account: (%s) "
(mapconcat #'(lambda (var) (car var)) my-mu4e-account-alist "/"))
(mapcar #'(lambda (var) (car var)) my-mu4e-account-alist)
nil t nil nil (caar my-mu4e-account-alist))))
(account-vars (cdr (assoc account my-mu4e-account-alist))))
(if account-vars
(mapc #'(lambda (var)
(set (car var) (cadr var)))
account-vars)
(error "No email account found"))))
(add-hook 'mu4e-compose-pre-hook 'my-mu4e-set-account)
;; Attach files using dired using 'C-c RET C-a'
;; Thanks to: http://www.djcbsoftware.nl/code/mu/mu4e/Attaching-files-with-dired.html#Attaching-files-with-dired
(require 'gnus-dired)
;; make the `gnus-dired-mail-buffers' function also work on
;; message-mode derived modes, such as mu4e-compose-mode
(defun gnus-dired-mail-buffers ()
"Return a list of active message buffers."
(let (buffers)
(save-current-buffer
(dolist (buffer (buffer-list t))
(set-buffer buffer)
(when (and (derived-mode-p 'message-mode)
(null message-sent-message-via))
(push (buffer-name buffer) buffers))))
(nreverse buffers)))
(setq gnus-dired-mail-mode 'mu4e-user-agent)
(add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)
;; Setup mu4e-maildirs-extension
(require 'mu4e-maildirs-extension)
(mu4e-maildirs-extension)
(setq smtp-accounts
'(("collin.doering@gmail.com" "Collin J. Doering" "smtp.gmail.com")
("rekahsoft@gmail.com" "rekahsoft" "smtp.gmail.com")))
(defun my-change-smtp ()
(save-excursion
(loop with from = (save-restriction
(message-narrow-to-headers)
(message-fetch-field "from"))
for (addr fname server) in smtp-accounts
when (string-match addr from)
do (setq user-mail-address addr
user-full-name fname
smtpmail-smtp-server server
smtpmail-smtp-user addr))))
(defadvice smtpmail-via-smtp
(before change-smtp-by-message-from-field (recipient buffer &optional ask) activate)
(with-current-buffer buffer (my-change-smtp)))
(ad-activate 'smtpmail-via-smtp)
;; Set environment variables set by gpg-agent --daemon in ~/.gpg-agent-info
;; TODO: perhaps better error handling if ~/.gpg-agent-info doesn't exist
(mapc (lambda (x) (setenv (car x) (cadr x)))
(with-temp-buffer
(insert-file-contents "~/.gpg-agent-info")
(mapcar (lambda (x) (split-string x "=" t)) (split-string (buffer-string) "\n" t))))
2011-06-21 03:26:45 +00:00
(custom-set-variables
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; 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.
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
'(TeX-command-list (quote (("TeX" "%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (plain-tex-mode texinfo-mode ams-tex-mode) :help "Run plain TeX") ("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("Makeinfo" "makeinfo %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "%(PDF)amstex %`%S%(PDFout)%(mode)%' %t" TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX") ("ConTeXt" "texexec --once --texutil %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber") ("View" "zathura %s.pdf" TeX-run-discard-or-function t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help "Generate PostScript file") ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t :help "Spell-check the document") ("Clean" "TeX-clean" TeX-run-function nil t :help "Delete generated intermediate files") ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help "Delete generated intermediate and output files") ("Other" "" TeX-run-command t t :help "Run an arbitrary command"))))
'(bmkp-last-as-first-bookmark-file "~/.emacs.d/bookmarks")
'(coffee-tab-width 2)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
'(confirm-kill-emacs (quote y-or-n-p))
'(custom-safe-themes (quote ("96b54f35e473769a388f12984d735092f9163c63aa6724ee49176d865c46071b" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "b5aaedbcd4d81925c8b2bc21dbed6d0a5a6854b6ad745e948efd55e42b48bd04" "8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" "36a309985a0f9ed1a0c3a69625802f87dee940767c9e200b89cdebdb737e5b29" "dc8693659115ea453f849f47509b903da3801b5f1521a73fa31556a9a3558517" default)))
2013-11-03 03:18:16 +00:00
'(fill-column 95)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
'(geiser-default-implementation (quote racket))
'(geiser-racket-collects (quote ("/usr/share/racket/collects")))
'(hl-sexp-background-color "#19202B")
'(ido-enable-flex-matching t)
2013-11-03 03:18:16 +00:00
'(magit-commit-signoff t t)
'(org-agenda-files (quote ("~/.org/tech/notes.org" "~/.org/todo/rekahsoft-mini-todo.org" "~/.org/todo/rekahsoft-todo.org" "~/.org/todo/general.org" "~/.org/todo/work.org")))
2011-06-21 03:26:45 +00:00
'(quack-default-program "racket")
'(quack-fontify-style (quote plt))
'(quack-programs (quote ("mzscheme" "bigloo" "csi" "csi -hygienic" "gosh" "gracket" "gsi" "gsi ~~/syntax-case.scm -" "guile" "kawa" "mit-scheme" "racket" "racket -il typed/racket" "rs" "scheme" "scheme48" "scsh" "sisc" "stklos" "sxi")))
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
'(quack-remap-find-file-bindings-p nil)
2011-06-21 03:26:45 +00:00
'(scroll-bar-mode nil)
Did a variety of changes documented by file below; Key changes include: * finally have multiple smtp accounts working with gnu/emacs! * using dunst (a notification-daemon) * fixes to mpd's service files mpd.{service,socket} to allow for socket activation via dbus/systemd .authinfo.gpg: * now holds the information for all my email accounts .bashrc: * set LANG and LC_MESSAGE variables .bin/xmonadClose.sh: * added support for restart which was missed but trivial to implement .config/dunst/dunstrc: * slightly modified version of skeletal dunstrc provided by the dunst package .config/mc/ini: * automatic changes made by mc .config/mc/panels.ini: * deleted; no need to keep this in the git repo since it is modified automatically by mc to save the panel's state/s .config/systemd/user/dunst.service: * a service file to manage dunst - a customizable and lightweight notification-daemon .config/systemd/user/mpd.service: * now uses socket activation to allow mpd to be used over the network (via mpd.socket) .config/systemd/user/mpd.socket: * a socket file denoting what port/s to open when mpd.service is run .emacs: * disable pastebin extension because pastebin is a insane and the api has changed * set the mail function to smtpmain-send-it .emacs.d/themes/manoj-transparent-theme.el: * fixed minor error caused by using "nill" in place of nil * change the marked text background color from blue to gray19 .gitconfig: * set default name * set some fancy colors .gnus: * finally now supports multiple smtp accounts! * some minor cleanup * disabled gnus daemon until i spend some time looking into its uses .local/share/mc/skins/gotar-mod.ini: * set the background of the currently selected file to gray in place of default (transparent) so that in transparent terminals the currently selected file is noticeably highlighted .mpdconf: * no real changes; comments .ncmpcpp/config: * added support for notification using notify-send (libnotify and dunst) .screenrc: * set 256 bit color for urxvt .xinitrc: * set GENERAL_SCREEN instead of exporting it * shrink the case expression responsible for determining which wm to launch .xmonad/xmonad.hs: * doMaxFloat pavucontrol instead of doFullFloat .zshrc: * set LANG and LC_MESSAGE variables * added support to temporarily disable unclutter when running a command * now the alias 'qemu' disables unclutter before running qemu with kvm enabled * TODO: find commonalities between .bashrc and .zshrc and create a second shell script that does the common tasks; then the new shell script can be sourced from either .bashrc or .zshrc Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2013-03-19 22:36:19 +00:00
'(send-mail-function (quote smtpmail-send-it))
'(show-paren-mode t)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
'(w3m-content-type-alist (quote (("text/plain" "\\.\\(?:txt\\|tex\\|el\\)\\'" nil nil) ("text/html" "\\.s?html?\\'" ("conkeror" file) nil) ("text/sgml" "\\.sgml?\\'" nil "text/plain") ("text/xml" "\\.xml\\'" nil "text/plain") ("image/jpeg" "\\.jpe?g\\'" ("/usr/bin/display" file) nil) ("image/png" "\\.png\\'" ("/usr/bin/display" file) nil) ("image/gif" "\\.gif\\'" ("/usr/bin/display" file) nil) ("image/tiff" "\\.tif?f\\'" ("/usr/bin/display" file) nil) ("image/x-xwd" "\\.xwd\\'" ("/usr/bin/display" file) nil) ("image/x-xbm" "\\.xbm\\'" ("/usr/bin/display" file) nil) ("image/x-xpm" "\\.xpm\\'" ("/usr/bin/display" file) nil) ("image/x-bmp" "\\.bmp\\'" ("/usr/bin/display" file) nil) ("video/mpeg" "\\.mpe?g\\'" nil nil) ("video/quicktime" "\\.mov\\'" nil nil) ("application/dvi" "\\.dvi\\'" ("xdvi" file) nil) ("application/postscript" "\\.e?ps\\'" ("gs" file) nil) ("application/pdf" "\\.pdf\\'" nil nil) ("application/x-pdf" "\\.pdf\\'" nil nil) ("application/xml" "\\.xml\\'" nil w3m-detect-xml-type) ("application/rdf+xml" "\\.rdf\\'" nil "text/plain") ("application/rss+xml" "\\.rss\\'" nil "text/plain") ("application/xhtml+xml" nil nil "text/html"))) t)
'(yas-prompt-functions (quote (yas-ido-prompt))))
2011-06-21 03:26:45 +00:00
(custom-set-faces
Made several minor changes/tweaks as follows: .conkerorrc: * changed pdf application to zathura * added a bunch of webjumps (see source) * made duckduckgo default search engine .emacs: * switched to emacs24 from bzr * enabled flyspell-mode * depreciated emacs-color-theme (use built-in theming in emacs24) * added magit init code with the intent of playing with magit someday instead of using cl * setup auto-complete extension * added keybinding C-x 4 s which opens up a elisp scratch buffer * added keybinding C-x 4 e which opens up a eshell buffer * added a eshell clear function * added .conkerorrc, .xmobarrc, .screenrc, and .stumpwmrc to auto-mode-alist .xbindkeysrc: * modified all audio controls to utilize cmus-remote instead of mpc .xinitrc: * using nouveau instead of nvidia driver so naturually switched from twinview to xrandr * disabled pulseaudio from starting because it is automatically started by settings in /etc/pulse/client.conf * modified trayers parameters due to the new xrandr setup .xmobarrc: * added foreword comments * removed volume script from bar (only supported alsa) .xmonad/xmonad.hs: * added emacs scratchpad (keybinding Mod-Control-Escape) * added mc scratchpad (keybinding Mod-Control-3) * added transmission scratchpad (replacing deluge) with keybinding Mod-Control-4 * imported XMonad.Layout.ToggleLayouts in hopes to find a nice fullscreen solution; disabled (but not uncommented) keybinding Mod-Control-Space. *TODO* Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2012-01-12 09:19:15 +00:00
;; 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.
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
'(mode-line ((t (:background "grey20" :foreground "#00afff" :box 1 :slant normal :weight normal :height 111 :width normal :foundry "xos4" :family "Terminus"))))
'(mode-line-inactive ((t (:inherit mode-line :background "grey5" :foreground "grey80" :box 1 :slant normal :weight normal :height 111 :width normal :foundry "xos4" :family "Terminus"))))
'(show-paren-match ((t (:background "dark violet")))))
(put 'dired-find-alternate-file 'disabled nil)
Various changes to emacs configuration Some highlights include: - Modified theme to better emphasize mode-line - Add .emacs.d/site-lisp-extra to load-path for various emacs-lisp snippets - Add custom yasnippet directory under .emacs.d/snippets - Use flyspell in more non-code modes (eg. various markup languages and mu4e) - Added new sorting rules/categories for ibuffer - Setup Auctex for smooth latex editing - Pimp out editing of lispy langs including: - highlight current sexp at point with hightlight-sexp - enable mode for racket scribble (in .emacs.d/site-lisp-extra/) - add guile to geiser scheme implementations list - Disabled highlight-current-line - Enable bookmarks+ See: http://www.emacswiki.org/emacs/BookmarkPlus - Update auto-insert templates to use variables "author" and "email" correctly. Note: I am considering removing use of auto-insert for templates and instead switching to yasnippet for templates and starting with a empty file. Then a snippet like 'gpl3' could be expanded to be the license or the license header for the file. Also the little info block I have on all of my current templates could also simply be another snippet. - Switched from gnus to mu4e for email; this requires the external tools mbsync and mu. Gnus can still be used but is now depreciated in preference of mu4e (which is much faster and better suited when used in combination with mbsync) - Fixed annoying issue where when quack-mode was enabled C-x C-f was overridden to quack-find-file which didn't have ido-completion - Setup gpg-agent so environment variables are correct (*TODO* this still isn't working 100% as I've noticed miss matches; it could be that somehow GPG_AGENT_INFO changes outside of emacs and because I only fix its value during the evaluation of .emacs it could result in a miss match.) - Add exit confirmation in the mini-buffer Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-09-07 03:42:04 +00:00
(put 'downcase-region 'disabled nil)