Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thx #1

Open
wants to merge 234 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
4dbe2a4
improve ps1
bjeanes Oct 28, 2012
f88656c
Change emacs colors
bjeanes Oct 28, 2012
3ac3331
Change Ruby indentation style
bjeanes Oct 28, 2012
037ed4a
Indent on new line
bjeanes Oct 28, 2012
232576f
Kaleidoscope 2
bjeanes Nov 23, 2012
cc4df52
Go emacs
bjeanes Nov 23, 2012
10a2d1a
Fix history
bjeanes Dec 5, 2012
7b455a6
see latest branches
bjeanes Dec 5, 2012
c546df3
Ignore hub credentials
bjeanes Mar 10, 2013
b6a3a93
Show when ZSH is waiting for completion
bjeanes Mar 10, 2013
f48931f
Try to get my zsh config loadable inside emacs shell
bjeanes Mar 10, 2013
1263819
misc emacs stuff
bjeanes Mar 10, 2013
5ae1347
Upgrade lein plugins
bjeanes Mar 10, 2013
63d76d8
Trying 'le git'
bjeanes Mar 10, 2013
0ddea18
Fix kaleidoscope diffing
bjeanes Mar 10, 2013
36cc66d
Remove empty hook
Mar 11, 2013
68cdd42
Update vundle
Mar 11, 2013
7be8c80
Add git alias for adding files without whitespace changes
Mar 11, 2013
6391e28
Improve git ctags alias
Mar 11, 2013
ecea8cb
Rails 3+ has dbconsole now, so this isn't needed
bjeanes Mar 22, 2013
1d72b1f
In-line rbenv stuff into ruby.sh
bjeanes Mar 23, 2013
e903c13
Fix IRB history
bjeanes Mar 31, 2013
06ab47e
Support chruby
bjeanes Mar 31, 2013
76fa447
Git improvements
bjeanes Mar 31, 2013
810b84c
If no ruby switcher is installed, don't try to figure out version
Apr 1, 2013
dfc4ec4
Fix ruby switcher detection for non-chruby
Apr 1, 2013
8c30f2c
Simplify current ruby output for rbenv/rvm
Apr 1, 2013
2244d39
bash compatibility issues
bjeanes Apr 2, 2013
8968d4e
Add go-mode to emacs
bjeanes Apr 4, 2013
e067430
Fix pbcopy/pbpaste wrapper installer
bjeanes Apr 5, 2013
c78b9cb
Slight performance tweak
bjeanes Apr 5, 2013
8c485fb
Fix powerline init
bjeanes Apr 5, 2013
beaee2c
Update README.md
bjeanes Apr 5, 2013
27427f9
Update README.md
bjeanes Apr 5, 2013
a0ff32e
Misc changes
bjeanes Oct 11, 2013
399212d
Switch to NeoBundle and lazy-load most plugins for speedy vim boots
bjeanes Nov 6, 2013
f5dd7fe
Clean up vimrc cruft and document some of my choices
bjeanes Nov 6, 2013
cd9cca5
More vimming
bjeanes Nov 6, 2013
0928f61
Experiment with new powerline for Tmux and Vim
bjeanes Nov 12, 2013
597b1fe
Submodule some zsh deps
bjeanes Nov 12, 2013
569c910
No indent guides for lisp
bjeanes Nov 12, 2013
846e0b9
Don't set default ruby from shell start up
bjeanes Dec 3, 2013
ca420fd
psql config
bjeanes Dec 3, 2013
1d4ceca
Shell overview
bjeanes Dec 3, 2013
11be8ce
Fix tmux powerline loading
bjeanes Dec 3, 2013
16f9ad1
Fix weird background issue in term vim inside tmux
bjeanes Dec 3, 2013
8c50a48
Git alias overhaul
bjeanes Dec 3, 2013
b23e6eb
Replace NERDtree and Command-T with Ctrl-P
bjeanes Dec 3, 2013
7e1ba7f
Remove Indent-Guides
bjeanes Dec 3, 2013
7cd6e75
vim: Don't show cursorline
bjeanes Dec 3, 2013
cf145ae
vim: change colorscheme
bjeanes Dec 3, 2013
c5176ae
vim: powerline fonts in gui vim
bjeanes Dec 3, 2013
843cf0c
Alias to view my own commits
bjeanes Dec 3, 2013
93fb672
Simpler install mechanism
bjeanes Dec 3, 2013
00c7224
Clojure in Vim
bjeanes Jan 21, 2014
b90bab2
vim-smartinput
bjeanes Jan 21, 2014
c2ada65
Actually load vim-endwise
bjeanes Jan 21, 2014
314dc78
Note to self
bjeanes Jan 21, 2014
1409235
Remove vim-easymotion due to lack of use
bjeanes Jan 21, 2014
fdb3a7f
tasty vim-vinegar
bjeanes Jan 21, 2014
b55a365
Don't really use Gundo ever so bye.
bjeanes Feb 13, 2014
904b1f2
Remove ZoomWin.vim
bjeanes Feb 13, 2014
9c7e541
Rainbow parens are cute but meh
bjeanes Feb 13, 2014
4d3a1f0
Unite.vim is wicked cool but ctrlp meets my needs
bjeanes Feb 13, 2014
1308453
Don't really use cucumber any more
bjeanes Feb 13, 2014
a628865
Never use Hammer.vim
bjeanes Feb 13, 2014
184e465
Clojure(script) in vim
bjeanes Feb 13, 2014
f39028f
New git alias
bjeanes Apr 2, 2014
76df2f4
Tmux config for latest tmux
bjeanes Apr 2, 2014
7947003
Tweak colorscheme a bit
bjeanes Apr 3, 2014
d1e930e
Change listchars characters
bjeanes Apr 3, 2014
34b7dee
Add bundle for Rust development
bjeanes Apr 3, 2014
42e1976
Add vim bundle for Go development
bjeanes Apr 3, 2014
41aa3ba
Add some more git aliases
bjeanes Apr 3, 2014
dca7ff9
Vim script to test color codes in current terminal
bjeanes Apr 3, 2014
e1ae402
gitignore
bjeanes Apr 3, 2014
679db6f
Remove ctags comments to get rid of syntax warning
bjeanes Apr 18, 2014
613abb3
Nicer git status alias
bjeanes Apr 18, 2014
7296f84
Kaleidoscope is a mess and I could never get it working with git
bjeanes Apr 18, 2014
d53bb6d
Git rerere was more pain than help
bjeanes Apr 18, 2014
a476955
Update Clojure setup in Vim
bjeanes May 23, 2014
91e4fc2
Update NeoBundle
bjeanes May 23, 2014
5e116ad
Tmux now has Zoom built-in
bjeanes May 23, 2014
3e7c76e
Dash vim plugin when on mac
bjeanes May 23, 2014
d80e16e
Update lein profiles
bjeanes May 23, 2014
7a50043
Git config updates
bjeanes May 23, 2014
3f10b9a
Add vim-sleuth
bjeanes May 23, 2014
cfda3f3
Use easy-align instead of Tabular
bjeanes Jul 5, 2015
4eef124
Default leader
bjeanes Jul 5, 2015
975939c
Don't care about these things
bjeanes Jul 5, 2015
8320f2e
Update neobundle
bjeanes Jul 5, 2015
3009d6d
Spacemacs
bjeanes Aug 5, 2015
964f989
ctag all the things
bjeanes Aug 5, 2015
b688e89
Extract out prompt function so the prompt can be overridden and extended
bjeanes Aug 7, 2015
19a0564
latest
bjeanes Aug 7, 2015
78403a2
lein stuff
bjeanes Aug 7, 2015
cb10d2e
Add Karabiner config
bjeanes Aug 11, 2015
36bd511
Fix typo
bjeanes Aug 11, 2015
c33f661
emacs aliases for shell
bjeanes Sep 2, 2015
0f689cd
nvm
bjeanes Sep 2, 2015
1ef0ecc
Latest spacemacs config
bjeanes Sep 5, 2015
bab84a1
Use stable CIDER and clj refactor
bjeanes Sep 5, 2015
3f7b304
emacs stuff
bjeanes Oct 10, 2015
5f7aad9
Make yubikey shortcut toggle instead of turn on
bjeanes Oct 10, 2015
5fa187a
Add rule to force an external apple keyboard to QWERTY
bjeanes Oct 10, 2015
1be158e
gitignores
bjeanes Oct 10, 2015
bd2981a
Just disable auto-tmux stuff for now
bjeanes Oct 10, 2015
7082d2d
Get rid of powerline submodule
bjeanes Jul 4, 2016
56a454f
Updated (n)vim config
bjeanes Jul 4, 2016
0a87a67
Update vim-plug
bjeanes Feb 21, 2017
43d3403
vim stuff
bjeanes Apr 2, 2017
730a155
add agignore
bjeanes Apr 2, 2017
0a19ac5
remove accidentally committed nvim link
bjeanes Apr 2, 2017
054d41d
Remove unused autotest stuff
bjeanes Apr 2, 2017
7a11aa8
Try to work around buggy `zeus` behaviour w/ alias
bjeanes Apr 2, 2017
b7089b5
I never really started using nvm, so remove config for now
bjeanes Apr 2, 2017
3eb8b8b
Tweak blue colour in prompt
bjeanes Apr 2, 2017
5f99942
Experiment with 2-line ZSH prompt
bjeanes Apr 2, 2017
fd85d40
Fix Kaleidoscope tool for git merging
bjeanes Apr 2, 2017
a315495
Re-organise git alias
bjeanes Apr 2, 2017
3c535e4
Make commit message prompt verbose
bjeanes Apr 2, 2017
4bce31d
Revise `git addnw` alias from StackOverflow post
bjeanes Apr 2, 2017
f9bda5e
Remove no-longer-needed multi-heroku config
bjeanes Apr 2, 2017
84fa55c
Experiment w/ gitconfig loc in versioned path
bjeanes Apr 2, 2017
a3af33f
Add Brewfile for my common deps
bjeanes Apr 2, 2017
b1d3396
Experiment with Fresh
bjeanes Apr 2, 2017
49ba552
/shrug
bjeanes Jul 22, 2019
8daf907
Add asdf
bjeanes Aug 29, 2019
c1daddf
Remove Brewfile
bjeanes Aug 29, 2019
390cd79
Set MIX_ENV for editor
bjeanes Aug 29, 2019
0f1a978
Better cross-platform compat for testing for bins
bjeanes Aug 29, 2019
5e08afe
Set better default FZF command (when ag installed)
bjeanes Aug 29, 2019
a77db5a
Switch fully to fresh
bjeanes Aug 29, 2019
6bbfeff
Config will auto-create plug.vim so don't commit it
bjeanes Aug 29, 2019
e1883c1
Re-jig vim setup.
bjeanes Aug 29, 2019
27c865a
Update ctags hook with latest version in blog post
bjeanes Aug 29, 2019
19afd94
Restore .git_template linking after move to Fresh
bjeanes Aug 29, 2019
293bf49
Ignore .git repo in ag searches, by default
bjeanes Aug 29, 2019
f447f7e
Fix vim modeline on freshrc
bjeanes Aug 29, 2019
43b4edd
Update (Neo)Vim plugins after running Fresh
bjeanes Aug 29, 2019
0132966
Map vim toggles with <leader>t prefix
bjeanes Aug 29, 2019
2db5054
fixup! Update (Neo)Vim plugins after running Fresh
bjeanes Aug 29, 2019
48756ec
Make vim-which-key snappier
bjeanes Aug 29, 2019
15f098f
Remove unused Git aliases
bjeanes Aug 29, 2019
6ac8cad
Fix git config indentation
bjeanes Aug 29, 2019
2eab795
Add Elixir definitions to ctags config
bjeanes Aug 29, 2019
a5469b2
Work around freshrc bug / missing feat
bjeanes Aug 29, 2019
428621c
Collect ctags definitions from all over
bjeanes Aug 29, 2019
6f9907c
Remove stale comment
bjeanes Aug 29, 2019
973d725
[git] Don't ignore `lib/` as Elixir keeps source here
bjeanes Sep 8, 2019
9160462
Fix indent
bjeanes Sep 8, 2019
e957359
[fresh] Allow skipping vim plugin updates in fresh
bjeanes Sep 8, 2019
2bc3149
[git] Use `diffr` to display diff
bjeanes Sep 8, 2019
eddd4fa
[vim] Nice Startify config
bjeanes Sep 8, 2019
e5a0108
Separate section
bjeanes Sep 8, 2019
d309ffd
[vim] Tighten NERDTree config
bjeanes Sep 8, 2019
7c3a70f
[vim] Nicer commit interface with Vim as editor
bjeanes Sep 8, 2019
b050e38
[vim] Use release tags for plugs with release tags
bjeanes Sep 8, 2019
c84ea76
[vim] Hide indent lines on markdown (show for JSON)
bjeanes Sep 8, 2019
90ad7e8
[vim] Turn on Elixir auto-formatting but disable Ruby's
bjeanes Sep 8, 2019
b342bb8
[vim] Change working directory to Git root
bjeanes Sep 8, 2019
9118189
[vim] More "targeted" text objects around pairs
bjeanes Sep 8, 2019
660f86d
[vim] Fix cursor highlighting w/ matching pairs
bjeanes Sep 8, 2019
ce7cb68
[vim] Set tags manually in prep for next fugitive
bjeanes Sep 8, 2019
c16182e
[vim] Misc
bjeanes Sep 8, 2019
88b3373
[vim] Remove RootIgnore plugin, as it errors
bjeanes Sep 8, 2019
2214a99
Associate elixir lang with .ex{s,} for git diff
bjeanes Jan 15, 2020
c628d7e
Fix issue with unbound variable
bjeanes Apr 2, 2020
36c1936
Preserve existing PATH
bjeanes Apr 2, 2020
1aa3612
Fix arrow keys in ZSH insides WSL/Windows Terminal
bjeanes Apr 2, 2020
4d613c1
More nuanced zsh history searching
bjeanes Apr 2, 2020
f454a79
Add `arst` alias for `asdf` and fix error in zsh
bjeanes Apr 2, 2020
2c0385e
Make ZSH plugin loading a bit more consistent
bjeanes Apr 2, 2020
cb51dd7
Improve ZSH completions loading
bjeanes Apr 2, 2020
ef5dc4f
Add some more bins to dotfiles
bjeanes Apr 2, 2020
ef83444
Start porting Bash configs to Fresh management
bjeanes Apr 2, 2020
6d54f02
Configure `asdf` versions
bjeanes Apr 3, 2020
0444b73
Remove shell aliases I no longer use
bjeanes Apr 3, 2020
c77820e
Hook into Windows' SSH Agent under WSL
bjeanes Apr 3, 2020
11a193f
Load local config
bjeanes May 4, 2020
1fdbb88
Re-arrange configuration of local gitconfig
bjeanes May 4, 2020
bf32c13
Configure git credential helper under WSL
bjeanes May 4, 2020
82e25eb
Update default tool versions
bjeanes May 4, 2020
c605d74
Ignore .vscode directory by default
bjeanes May 4, 2020
e52ad46
Start root's cron under WSL
bjeanes May 4, 2020
12c29a2
Only start cron if not already running
bjeanes May 4, 2020
6ecd8cf
Only check for `WSL` in osrelease
bjeanes May 4, 2020
f1a146d
Switch {zsh,fast}-syntax-highlighting
bjeanes May 26, 2020
f2bc9fe
Switch ZSH prompt to P10K
bjeanes May 26, 2020
7c0e2d7
Remove files unused since the switch to Fresh
bjeanes May 26, 2020
4f1e7c0
Update tool versions
bjeanes May 26, 2020
98e503a
Abbreviate WSL home dir to ~win
bjeanes May 26, 2020
1db2564
Switch git pager from diffr[1] to delta[2]
bjeanes May 26, 2020
8bf8753
Update global .gitignore
bjeanes May 26, 2020
70c04af
Disable node_version component and just use asdf
bjeanes May 26, 2020
55d7637
Fix WSL check
bjeanes Jun 13, 2020
cce76f8
Ignore .tool-versions files from Git, by default
bjeanes Jun 13, 2020
8eee4d0
Enable auto-formatting in Vim with rustfmt
bjeanes Jun 13, 2020
280d908
Erlang/elixir tweaks
bjeanes Jun 13, 2020
85afb5c
[vim] Hide indent lines in FZF panel
bjeanes Aug 23, 2020
22477d3
[vim] Use CoC.nvim for Ruby and Rust; disable ALE
bjeanes Aug 23, 2020
6042627
[vim] Fix warning
bjeanes Aug 23, 2020
a93500b
[vim] Add a few plugins
bjeanes Aug 23, 2020
121dfec
[vim] Re-use buffers
bjeanes Aug 23, 2020
aea690d
[vim] Make default text width wider
bjeanes Aug 23, 2020
0367b77
Add global Rubocop config
bjeanes Aug 23, 2020
b3b9ee4
Hard-code .dotfiles path
bjeanes Aug 23, 2020
3cf35a7
pbpaste/pbcopy aliases for Linux
bjeanes Aug 23, 2020
7fc97bf
[git] Change default branch to `main`
bjeanes Aug 23, 2020
9fb6b41
[vim] Add snippets
bjeanes Aug 24, 2020
79c8718
[vim] Select tab completion with Enter
bjeanes Aug 24, 2020
0d6565f
[vim] Add vim-test and mappings
bjeanes Aug 24, 2020
12b8e40
[vim] Convenient terminal behaviour
bjeanes Aug 24, 2020
d95a496
[vim] Don't choose first auto-complete on ENTER
bjeanes Aug 24, 2020
22ad16a
Add ~/.local/bin to PATH
bjeanes Oct 24, 2020
ffe9e6e
Prepend /usr and /opt to ensure they come before /bin
bjeanes Oct 24, 2020
dd7316c
Add neovim conditional
bjeanes Oct 24, 2020
d968f08
Generate .tool-versions with latest installed
bjeanes Oct 24, 2020
dd5ef20
Add TODO
bjeanes Oct 24, 2020
14e108a
Add to gitignore
bjeanes Oct 24, 2020
f0f5230
Follow file renames in `git log <file>`
bjeanes Oct 24, 2020
d7cbf8c
Fix coc.nvim according to random GH issue comment
bjeanes Oct 24, 2020
b6ed731
Only generate .tool-versions when ASDF is installed
bjeanes Oct 24, 2020
385ff29
Start or join tmux session when SSHing into server
bjeanes Oct 24, 2020
57747b7
Fix tmux conf error
bjeanes Oct 24, 2020
0474776
Update tmux.conf for newer version
bjeanes Oct 24, 2020
1dfcae5
Don't assume macOS or ZSH
bjeanes Oct 24, 2020
e4c38e9
Drop into tmux before p10k instant prompt
bjeanes Oct 24, 2020
70ddba3
Simplify Tmux auto-joining
bjeanes Oct 24, 2020
0a357da
OK this is how I want Tmux to work
bjeanes Oct 24, 2020
b221710
Fix after hook in freshrc
bjeanes Oct 24, 2020
65e0a1b
Add setup instructions
bjeanes Nov 18, 2021
cbdacbd
Update freshrc
bjeanes Nov 18, 2021
bb3c0db
Setup ASDF from Homebrew properly
bjeanes Nov 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
Transmission Remote GUI
vim/bundle/*
Fritzing
hub
camlistore
git/
inkscape/
transmission-daemon/
9 changes: 6 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "editors/vim/bundle/vundle"]
path = editors/vim/bundle/vundle
url = git://github.com/gmarik/vundle.git
[submodule "shells/zsh/lib/syntax-highlighting"]
path = shells/zsh/lib/syntax-highlighting
url = git://github.com/zsh-users/zsh-syntax-highlighting.git
[submodule "shells/zsh/lib/history-substring-search"]
path = shells/zsh/lib/history-substring-search
url = git://github.com/zsh-users/zsh-history-substring-search.git
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# TODO
# My dot files.

* Make ZSH/Bash PATH dynamically figured out (via globbing) like fish
* Make `rake install` install a .git pre-commit hook to remind about or automatically remove all API keys from dot files (gitconfig, etc)
* Make `rake install` set up a loop that will always try to `git pull` the dot-files (if working directory is clean) so they are always up to date
* Remove 'export' from variables that don't need them
* Make current directory red in prompt if non-writeable (ala fish)
* Fix shell $PATH. Intelligently build up from only existent directories and ensure no-duplicates
* Steal some awesome stuff from https://github.com/skwp/dotfiles/blob/master/osx
Please explore and/or suggest!

Copyright (c) 2008-2011 Bodaniel Jeanes
## Initial setup

```sh
$ FRESH_LOCAL_SOURCE=bjeanes/dot-files bash -c "`curl -sL https://get.freshshell.com`"
```

# LICENSE

Copyright (c) 2008-2013 Bodaniel Jeanes

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
79 changes: 0 additions & 79 deletions Rakefile

This file was deleted.

8 changes: 2 additions & 6 deletions editors/emacs/bjeanes/01_colors.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
(defun plist-to-alist (&optional arg) nil) ; stop a weird error coming
; from color-theme-molokai
(require 'color-theme)
(require 'color-theme-molokai)
(color-theme-molokai)
(require 'color-theme-sanityinc-tomorrow)

(set-face-background 'hl-line "#000")
(color-theme-sanityinc-tomorrow-night)
54 changes: 47 additions & 7 deletions editors/emacs/bjeanes/99_vim.el
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
(require 'evil)
(add-hook 'prog-mode-hook 'evil-mode)
(require 'surround)
(add-hook 'prog-mode-hook 'global-surround-mode)

(define-key evil-motion-state-map (kbd "C-u") 'evil-scroll-up)

;; TODO
;; * Map D to C-k (i.e. preserve paredit's version)
;; * Make word motions obey subword-mode setting
;; * Put current Evil state into powerline

(require 'evil)

;; This is actually mapped but it doesn't seem to work reliably
;; without this
(define-key evil-motion-state-map (kbd "C-u") 'evil-scroll-up)

;; Escape quits
;; https://github.com/mbriggs/.emacs.d/blob/d9e254ae/my-keymaps.el#L81-L89
(define-key evil-normal-state-map [escape] 'keyboard-quit)
(define-key evil-visual-state-map [escape] 'keyboard-quit)
(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit)
(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit)
(define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit)
(define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit)
(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit)


(require 'cl) ; for `flet`
(flet ((move-key (keymap-from keymap-to key)
(define-key keymap-to key (lookup-key keymap-from key))
(define-key keymap-from key nil)))
;; Keep space/return available for other modes
;; http://emacswiki.org/emacs/Evil#toc11
(move-key evil-motion-state-map evil-normal-state-map (kbd "RET"))
(move-key evil-motion-state-map evil-normal-state-map " "))

;; a la vim-surround
(require 'surround)
(add-hook 'prog-mode-hook
(lambda ()
(turn-on-evil-mode)
(turn-on-surround-mode)))

;; "tabs" (http://emacswiki.org/emacs/Evil#toc16)
(load "elscreen" "ElScreen" t)
(define-key evil-normal-state-map (kbd "C-w t") 'elscreen-create) ;create tab
(define-key evil-normal-state-map (kbd "C-w x") 'elscreen-kill) ;kill tab
(define-key evil-normal-state-map "gT" 'elscreen-previous) ;previous tab
(define-key evil-normal-state-map "gt" 'elscreen-next) ;next tab

(require 'evil-paredit)
(add-hook 'emacs-lisp-mode-hook 'evil-paredit-mode)
(add-hook 'clojure-mode-hook 'evil-paredit-mode)
(add-hook 'common-lisp-mode-hook 'evil-paredit-mode)
(add-hook 'scheme-mode-hook 'evil-paredit-mode)
(add-hook 'lisp-mode-hook 'evil-paredit-mode)
4 changes: 4 additions & 0 deletions editors/emacs/bjeanes/bindings.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
(global-set-key (kbd "C-x M-f") 'ido-find-file-other-window)
(global-set-key (kbd "C-x m") 'eshell)

(define-key global-map (kbd "C-+") 'text-scale-increase)
(define-key global-map (kbd "C--") 'text-scale-decrease)

(define-key 'help-command "a" 'apropos)
1 change: 1 addition & 0 deletions editors/emacs/bjeanes/clojure.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(require 'clojure-mode)
(define-clojure-indent
(defroutes 'defun)
(do-seq 1)
(GET 2)
(POST 2)
(PUT 2)
Expand Down
2 changes: 2 additions & 0 deletions editors/emacs/bjeanes/go.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(require 'go-mode)
(gofmt-before-save)
2 changes: 1 addition & 1 deletion editors/emacs/bjeanes/misc.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(require 'powerline)
(command-execute 'powerline-default)
(command-execute 'powerline-default-theme)

(global-auto-revert-mode t)

Expand Down
18 changes: 16 additions & 2 deletions editors/emacs/bjeanes/programming.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@
(require 'autopair)
(autopair-mode 1)

;; TODO: Look into whitespace-cleanup instead?
(define-key global-map (kbd "RET") 'newline-and-indent)

(add-hook 'before-save-hook
'delete-trailing-whitespace)))
(lambda ()
(gofmt-before-save)
(delete-trailing-whitespace)))

(require 'auto-complete-config)
(ac-config-default)))


;;;;;;;; misc

;; Auto-compile is really annoying if you have an existing
;; compilation process that puts the output elsewhere or names it
;; differently (e.g. Rails asset pipeline, Middleman, etc)
(setq scss-compile-at-save nil)
3 changes: 2 additions & 1 deletion editors/emacs/bjeanes/ruby.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
(require 'ruby-end)
(require 'ruby-tools)

(custom-set-variables '(ruby-end-insert-newline nil))
(custom-set-variables '(ruby-end-insert-newline nil)
'(ruby-deep-indent-paren nil))

(eval-after-load 'ruby-mode '(progn
(add-hook 'ruby-mode-hook
Expand Down
8 changes: 8 additions & 0 deletions editors/emacs/bjeanes/snippets.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(require 'yasnippet)

(add-to-list 'yas-snippet-dirs
(concat esk-user-dir "/snippets"))

(yas-reload-all)

(add-hook 'prog-mode-hook 'yas-minor-mode)
55 changes: 39 additions & 16 deletions editors/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,54 @@
(package-refresh-contents))

;; Add in your own as you wish:
(defvar my-packages '(starter-kit
starter-kit-ruby
starter-kit-lisp
starter-kit-eshell
starter-kit-js
(defvar my-packages '(ac-nrepl
auto-complete
autopair
clojure-mode
clojure-test-mode
clojurescript-mode
autopair
ruby-tools
ruby-end
ruby-electric
markdown-mode
color-theme
color-theme-molokai
rainbow-delimiters
color-theme-sanityinc-tomorrow
ctags
evil
evil-paredit
exec-path-from-shell
find-file-in-repository
go-mode
markdown-mode
paredit
undo-tree
org
powerline
evil
surround)
rainbow-delimiters
ruby-electric
ruby-end
ruby-tools
starter-kit
starter-kit-eshell
starter-kit-js
starter-kit-lisp
starter-kit-ruby
surround
undo-tree
yasnippet)
"A list of packages to ensure are installed at launch.")

(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))

;; This takes a really long time because ZSH init scripts are TOO slow!
;; Thoughts:
;; * Extract a lot of non-interactive ZSH stuff to spawn from
;; .zshenv and adjust exec-path-from-shell to not start interactive
;; shell
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))

;; TODO:
;; * Go snippets
;; * Custom ruby/rspec snippetts
;; * proper auto-complete / intellisense
;; * auto pop-up (~100ms)
;; * intuitive TAB/ENTER support
;; * can be backed by REPL, ctags, buffer words, etc
;; * Plug snippets into auto-complete
Loading