Age | Commit message (Collapse) | Author |
|
Add helm version of functions to map and commander. I can't use
helm-projectile-on directly because of the keys I've redefined.
Since I'm now redefining so many commands, don't use any of the
predefined keys and just set everything here for both
projectile-command-map and commander.
|
|
|
|
|
|
|
|
|
|
Add commands to save and restore a buffer, file, or window configuration
for a project.
Projectile supports restoring window configuration with
persp-projectile.el. (A recent change to Projectile [1] removed
projectile-remember-window-configs in favor of using perspective.el.)
However, I want to explicitly choose which (if any) window configuration
is saved for a project and also want the ability to save buffers or
files.
[1] c94c5f5ad385f58682c2ac3414066ec24dd75abe
|
|
|
|
- Use letter pairs that are rare in both directions. For really
common commands, try to keep my fingers on home row.
- Remove some key chords for less frequent commands. For Projectile,
just bind switching projects and the commander because most other
things are available with one more key from the commander.
My strategy for key chord bindings was to lead with ',' or ';' and
then follow with any letter. The idea was that, with the languages and
coding conventions I was using at the time, when I inserted a comma or
semicolon, they were usually followed by a non-letter (typically a
space or a new line). But, this is actually not a good way to go
about this because Key chord mode accepts the two-letter combination
in either order. In practice, I didn't end up unintentionally calling
a command too often, but it did happen enough to be slightly annoying.
John Cook recently posted a table [1] of bigram frequencies, which is
a good starting point for updating my key chords.
[1]: http://www.johndcook.com/blog/2015/02/01/rare-bigrams/
|
|
|
|
- Add pages and more headings for large files.
- Try to use consistent order for file (or page) structure.
* Loading
* Settings
* Hooks
* Any mode activation or function calls
* My functions
* Key bindings
|
|
|
|
|
|
|
|
|
|
|
|
Change `projectile-recentf' to 'r' to be more consistent with other
maps (e.g., `ctl-x-4-map') and my key chords.
|
|
|
|
This avoids hard coding the prefix key.
|
|
This is more consistent with location of
'km/org-open-dired-marked-files'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I use `projectile-recentf' more frequently than `projectile-replace'.
Also, this mirrors the key-chord for `km/recentf-ido-find-file'.
|
|
|
|
|
|
|
|
|
|
|
|
`require-package' is from
https://github.com/purcell/emacs.d/blob/master/lisp/init-elpa.el.
|
|
User init files are added using provide/require.
https://github.com/purcell/emacs.d
|