Commit Graph

18 Commits

Author SHA1 Message Date
Collin J. Doering 3a89d9c045 Fix minor issues in theme (background of hl-line-mode and others)
Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering a6e3027be3 Use separate file for customize settings in emacs
Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering 187a6b1509 Deprecate w3m in preference for eww in emacs
- setup a default external browser add a function for accessing the last
- url before point (this is useful all over the place but namely in
  rcirc)

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering ca0ffdc4d5 Allow X emacs frames to be scratchpads in xmonad
Cannot have X11 emacs/emacsclient window as scratchpad in xmonad
- State "KNOWNCAUSE" from "BUG"        [2014-11-07 Fri 02:53] \\
  This is due to the fact that in xmonad I am unable to locate a particular emacs frame (X11
  window). This is because emacs' frames change there names dynamically and all have the same
  resource name, thus there's no way to locate them.
- State "BUG"        from "REPORT"     [2014-11-07 Fri 02:52] \\
  This is an issue. Emacs in terminal is nice but it's preferred to use a X11 instance when possible.

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering a8582a7d4e Modularize emacs config
Approximately coincides with the release of emacs 24.4, Though some
changes for the emacs 24.4 upgrade are not yet completed; specifically:
 * replace w3m with the now built in eww
 * no need to enable electric-indent-mode since it is now enabled by
   default
 * other things that I don't know about yet ...

Now the main changes are as follows:
 * Use .emacs.d/init.el for emacs start-up file instead of .emacs; this
   new init file is much shorter in summary does the following:
    - auto-loads packages installed using package.el using the
      package-initialize function
    - adds .emacs.d/site-lisp-extra to the load-path
    - sets a few variables and functions and then recursively loads all
      .el files in .emacs.d/config
    - contains all variables set by customize at the end of the file
 * All other configuration is written to files with appropriate names in
   .emacs.d/config; currently the concatenation of these files is the same
   as the .emacs in the last commit not including the sexp's that went
   into .emacs.d/init.el

Things that remain the same but are no less important to mention in
regards to the setup of this emacs configuration:
 * custom themes are stored in .emacs.d/themes
 * custom yasnippets are stored in .emacs.d/snippets
 * templates (used by .emacs.d/config/insert-templates.el to insert a
   comment at the beginning of certain files using auto-insert-mode) are
   located at .emacs.d/templates
   Note: I've been considering depreciating the use of auto-insert-mode
         to insert content into new files and instead use yasnippets.
         Further though is required.

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering a9d362f8db Use emacs for IRC in place of weechat
Wanted to switch to emacs for irc as it requires a lot of text typing
and manipulation. Anyways after trying ERC and rcirc I decided to go
with rcirc as I was having issues with ERC connecting to a username for
no reason on freenode (username "codeblock"). Anyways there is still
some residual elisp (commented) out for setting up ERC which is no
longer needed and will be cleaned up in a later commit.

In .tmux.conf start emacs instead of weechat.
Note: it would be nice to be able to have emacs open to a particular
buffer if its open or maybe have emacs remember a window layout for irc
chat

In .emacs.d/themes/manoj-transparent.el make ERC fit my mode-line theme.
This isn't really needed but won't hurt to stay if I ever choose to
switch to ERC for whatever reason.

See:
 [1]: https://www.youtube.com/watch?v=7WJCnC5ebf4&list=UU6107grRI4m0o2-emgoDnAA
 [2]: http://www.emacswiki.org/emacs/ERC
 [3]: http://www.emacswiki.org/emacs/InternetRelayChat

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering f46277891f Add new new-file templates for emacs
Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering 009e1dec7f Give more descriptive names to scheme define yasnippet
Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:44 -05:00
Collin J. Doering b3b095701f Various minor changes and missed fixes
Missed adding authinfo for mbsync along with .bin/isync-auth.sh which uses
gpg to decrypt the mbsync authinfo file and return the password for a
given account. This new authinfo is required because it uses a slightly
different format then the one use for gnus and offlineimap (both of
which are now depreciated and will soon be removed).
Also missed adding mbsync configuration (.mbsyncrc).

Missed adding emacs bookmark file .emacs.d/bookmarks

Added .local/share/applications/transmission-remote.desktop so it can be
set as the default application for torrents and magnet links when using xdg-open

Fixed key binding for url-picker (Urxvt) in .Xresources where there was
a missing colon

Added support for 256 color mimicry in tmux (which doesn't support true
256 colors) (in .xmonad/xmonad.hs when opening emacs-scratch and .tmux.conf)

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:43 -05:00
Collin J. Doering a09010409f 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>
2015-01-14 05:12:43 -05:00
Collin J. Doering bbb41c023c Various minor changes
* renamed .Xdefaults to .Xresources
* replaced screen with tmux
* added a darken function to .conkerorrc
* added some new eshell alias'
* added some new templates for emacs
* cleaned up .xinitrc
* .xmonad/
  * added circle layout
  * added convince key binding Mod-grave which is the same thing as
    Mod-ESC
  * made emacs-scratch open in tmux session

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:43 -05:00
Collin J. Doering 224f475a46 A variety of accumulated changes/fixes
Notable changes include:
  * .Xdefaults:
    - added comments
    - switched from url-select to url-picker (for urxvt)
  * .bashrc: added some alias' and changed PATH
  * .bin/vol.sh: *depreciated*
  * .bin/xmonadClose.sh: added experimental timed-action support
  * .config/dunst/dunstrc:
    - changed transparency to 15%
    - issue with getting "follow = v" to work; where v = mouse or keyboard
  * .config/systemd/user/emacs.service:
     - added a Environment property because it is required with a recent(ish?) update of systemd
  * .config/systemd/user/xbindkeys.service:
    - added Environment property
    - made ExecStart more specific
  * .conkerorrc:
    - added support for magnet urls
    - added firebug-lite support
  * .emacs:
    - disabled tabs
    - enabled column-number-mode
  * .ghci: added ghci config file
  * .gnus: Many changes to make gnus more usable as a email client (multiple
email support)
  * .mpdconf: added password for admin and control access
  * .ncmpcpp/config: use new mpd password
  * .screenrc: use weechat in place of irssi
  * .xbindkeysrc:
    - use new mpd password
    - pulseaudio_ctl merged with pulseaudio-ctl in AUR. Now using the new version *BROKEN*
  * .xinitrc: running "systemd --user" is depreciated (automatically run by logind)
  * .xmobarrc: use DynNetwork in place of Network
  * .xmonad/xmonad.hs: code clean-up
  * .zshrc:
    - added new function 'disable_unit_run' which can be used to run a program temporarily
      disabling a systemd user unit file
    - added alias'
    - changed PATH
2015-01-14 05:12:43 -05:00
Collin J. Doering e3fb51fd6e 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>
2015-01-14 05:12:43 -05:00
Collin J. Doering 5dd46f860c Cosmetic interface changes dealing primarily with transparency affecting emacs and mc. Changes
are as follows:
.config/mc.ini:
  * changed the skin to a custom version of gotar now located at .local/share/mc/skins/gotar-mod.ini
.config/mc/panels.ini:
  * automatic changes made by MC
.emacs:
  * utilize user custom theme folder .emacs.d/themes
  * changed theme to manoj-transparent (a transparent mod of theme manoj-dark)
  * added hook to 'after-make-frame-functions to check whether emacs is running in
    a tty or a XWindow. If the later is the case then change the frames background to
    black to make things look pretty and have both XWidows and tty instances of emacs
    utilize transparency
.emacs.d/themes/manoj-transparent-theme.el:
  * a modified manoj-dark with support for transparency
.local/share/mc/skins/gotar-mod.ini:
  * enables transparency and a nicer color scheme based on gotar
.xmonad/xmonad.hs:
  * start mc-scratch and emacs-scratch
  * remove extra mention of supertux2 in manageHook
  * add support for automatically centering/floating mc-scratch and emacs-scratch
  * enable transparency of the urxvtc instances started for mc-scratch and emacs-scratch

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2015-01-14 05:12:43 -05:00
Collin J. Doering 28602aa7ed 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>
2015-01-14 05:12:43 -05:00
Collin J. Doering 5a83b71e52 Added a variety of things including:
* conkeror configuration fil (long past due)
  * a lisp template to autoinsert in .emacs for .lisp files
  * a ratpoison wm config file
  * a not-really-started stumpwm config
  * vim config file for those odd times out of emacs :S

Signed-off-by: Collin Doering <rekahsoft@gmail.com>
2015-01-14 05:12:42 -05:00
Collin J. Doering 9c48ccacbe Added a clojure template for emacs 2015-01-14 05:12:42 -05:00
Collin J. Doering 45a536ed64 Added a new template for general scheme (kawa comes to mind); you'll see this
in both .emacs and .emacs.d/templates/scheme-template.scm
Also since the rkd-conf project now expects your config to diverge projects
are now handeled per host with the possibility to still pull from the generic
(although this is not clean); still looking into a way to diff between diverged git projects
One way is to simply keep an updated copy of the rkd-conf generic so you can diff your
diverged config against it like so:
   diff ~/path/to/you/conf/dir/target_diff_file path/to/rkd-conf/generic/target_diff_file
..you could make this a little nicer by writting a little script that does:
   cdiff <file> => diff ~/path/to/you/conf/dir/<file> path/to/rkd-conf/generic/<file>
where cdiff is the name of the script in this case. Sorry for the long commit message.
2015-01-14 05:12:42 -05:00