/dotfiles

my dotfiles for zsh, ctags, etc.

Primary LanguageShell

dotfiles

my dotfiles for zsh, Xresources, some shell scripts, etc.

Not much here really. .zshrc has a nice prompt. zshenv has some nice builtins.

.Xresources have mostly to do with urxvt and termite.

There is an additional tweak for hidpi monitors if you do a make hidpi

/bin is a directory of shell scripts which install in ~/bin

The bc-extensions repo has some nice code if you like using the bc calculator. It also installs to ~/bin.

Emacs

I run emacs using my emacsn script. emacsn takes care of running emacs or emacsclient, as well as evaluating an elisp function on startup. Any additional arguments like files are passed on to emacs in front of the --eval. Use help to see more options. I started using this when I realized I wanted my emacs email client separate from my development sessions. It's quite nice to have, try emacsn -h to see what it can do. Here are a few examples of what it does. It has a lot of help with other options.

  • emacsn -h => Help!
  • emacsn -e => emacs -title "Email" --eval "(mu4e)"
  • emacsn -m "Foo" => emacs -title "Foo" --eval "(main-window)"
  • emacsn -m "haskell" *.hs => emacs -title "haskell" *.hs --eval "(main-window)"
  • emacsn -f foo => emacs --eval "(foo)"

Adding -c changes it from emacs to emacsclient -c

  • emacsn -m -c => emacsclient -c --eval "(main-window)"

My main-window function looks like this:

(defun main-window ()
  (interactive)
  (balance-windows)
  (split-window-horizontally)
  (split-window-horizontally)
  (split-window-below))

Install

Where to put stuff. Or just use make install

  • .Xresources ==> ~/
    • yea. that. fonts colors and what not.
  • emacsn ==> ~/bin or where ever you put such things.
    • a shell script to run emacs in various ways.

Use make

This will create links from this repo, so that you can more easily keep track of changes and additions in github, by keeping all of your work here.

make install

if you have a high dots per inch monitor... make hidpi

That should do it.