Skip to content

Latest commit

 

History

History
162 lines (149 loc) · 13.6 KB

note.org

File metadata and controls

162 lines (149 loc) · 13.6 KB

Note

hydra

https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-hydra.el

BodyNon-colorHeadExecutingAfter
ColorAlternativeInheritedNON-HEADSexecuting
ColorHEADS
red:foreign-keys nil (default)redAllow and Quit
:exit nil (default)Continue
blue:foreign-keys nil (default)blueAllow and Quit
:exit tQuit
amaranth:foreign-keys warnredDisallow and Continue
:exit nil (default)Continue
teal:foreign-keys warnblueDisallow and Continue
:exit tQuit
pink:foreign-keys runredAllow and Continue
:exit nil (default)Continue

ivy

https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-ivy.el

Call `ivy-immediate-done’ if you want to use whatever you typed in the search field, and ignore the suggestions provided by ivy in the list.

C-u <`ivy-alt-done’ binding> <– `ivy-immediate-done’

This is useful especially when renaming files (and the name you want to rename to partially matches one of the existing files).

Commandivy mapFunction
Bindings
ivy-doneC-m or RETExit the minibuffer with the selected candidate.
Try to leave `ivy’ as soon as possible.
ivy-alt-doneC-jExit the minibuffer with the selected candidate.
When ARG is t, acts like `ivy-immediate-done’.
Try NOT to leave `ivy’ at the soonest. For
instance, if a directory name completion is
possible, do that and list that directory’s
content in `ivy’ instead of opening that dir
in `dired’.
ivy-immediate-doneC-M-jExit the minibuffer with the current text,
ignoring the candidates.
ivy-partial-or-doneTABAttempts partial completion, extending current line
input as much as possible. “TAB TAB” is the same as
`ivy-alt-done’.
ivy-callC-M-mCall the current action without exiting completion.
ivy-next-line-and-callC-M-nMove cursor vertically down ARG candidates.
Call the permanent action if possible.
ivy-previous-line-and-callC-M-pMove cursor vertically up ARG candidates.
Call the permanent action if possible.
ivy-dispatching-doneM-oPresents valid actions from which to choose. When
only one action is available, there is no difference
between this and `ivy-done’.
ivy-reverse-i-searchC-rstart a recursive completion session to select a history element.
ivy-insert-currentM-iinsert the current candidate into the minibuffer.
Useful for copying and renaming files,
for example: M-i to insert the original file name string,
edit it, and then C-m to complete the renaming..
ivy-yank-wordM-jinsert the sub-word at point into the minibuffer.
ivy-restrict-to-matchesS-SPCdeletes the current input, and resets the candidates list
to the currently restricted matches.
This is how Ivy provides narrowing in successive tiers.

Switch to any of the saved `ivy-views’ using `M-x ivy-switch-buffer’. When `ivy-mode’ is enabled, binding for `switch-to-buffer’ is remapped to `ivy-switch-buffer’.

shackle

https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-shackle.el

Elements of the `shackle-rules’ alist:

CONDITIONsymbolMajor mode of the buffer to match
stringName of the buffer
- which can be turned into regexp matching
by using the :regexp key with a value of t
in the key-value part
list of eithera list groups either symbols or strings
symbol or string(as described earlier) while requiring at
least one element to match
tt as the fallback rule to follow when no
other match succeeds.
If you set up a fallback rule, make sure
it’s the last rule in shackle-rules,
otherwise it will always be used.
KEY-VALUE:select tSelect the popped up window. The
`shackle-select-reused-windows’ option makes
this the default for windows already
displaying the buffer.
:inhibit-window-quit tSpecial buffers usually have `q’ bound to
`quit-window’ which commonly buries the buffer
and deletes the window. This option inhibits the
latter which is especially useful in combination
with :same, but can also be used with other keys
like :other as well.
:ignore tSkip handling the display of the buffer in
question. Keep in mind that while this avoids
switching buffers, popping up windows and
displaying frames, it does not inhibit what may
have preceded this command, such as the
creation/update of the buffer to be displayed.
:same tDisplay buffer in the current window.
:popup tPop up a new window instead of displaying
mutually exclusivethe buffer in the current one.
:other tReuse the window `other-window’ would select if
*must not be usedthere’s more than one window open, otherwise pop
with :align, :size*up a new window. When used in combination with
the :frame key, do the equivalent to
other-frame or a new frame
:alignAlign a new window at the respective side of
‘above, ‘below,the current frame or with the default alignment
‘left, ‘right,(customizable with `shackle-default-alignment’)
or t (default)by deleting every other window than the
currently selected one, then wait for the window
to be “dealt” with. This can either happen by
burying its buffer with q or by deleting its
window with C-x 0.
:sizeAligned window use a default ratio of 0.5 to
a floating pointsplit up the original window in half
value between 0 and 1(customizable with `shackle-default-size’), the
is interpreted as asize can be changed on a per-case basis by
ratio. An integer >=1providing a different floating point value like
is interpreted as a0.33 to make it occupy a third of the original
number of lines.window’s size.
:frame tPop buffer to a frame instead of a window.

Don’t show Async Shell Command buffers