mirror of
https://github.com/vale981/boon
synced 2025-03-05 09:31:43 -05:00
cleanups
This commit is contained in:
parent
80ec2a60d8
commit
176151320d
3 changed files with 6 additions and 6 deletions
|
@ -641,8 +641,7 @@ If there is more than one, use mc/create-fake-cursor-at-point."
|
|||
;; markers messes the logic used in kill-region to
|
||||
;; determine whether to prepend or append the thing
|
||||
;; just killed to the top of the kill ring.
|
||||
(message "Taking: %s " reg)
|
||||
(kill-region (boon-reg-mark reg) (boon-reg-point reg)))))))
|
||||
(kill-region (boon-reg-mark reg) (boon-reg-point reg)))))))
|
||||
|
||||
(defun boon-treasure-region (regs)
|
||||
"Copy (kill-ring-save) the regions REGS."
|
||||
|
|
|
@ -14,7 +14,7 @@ import MarXup.Latex.Math (ensureMath)
|
|||
import Control.Lens (set)
|
||||
-- import Data.String
|
||||
import Data.Traversable
|
||||
import Data.List (zip4,zipWith4,isSuffixOf)
|
||||
import Data.List (zip4,zipWith4,isSuffixOf,isPrefixOf)
|
||||
import Algebra.Classes
|
||||
preamble body = do
|
||||
documentClass "article" ["10pt"]
|
||||
|
@ -72,7 +72,7 @@ leftHandL = [[("escape",Char), ("search backward",SearchObject), ("search forwar
|
|||
]
|
||||
|
||||
leftHandR = [[("quotes (string)",None), ("word",None), ("word",None), ("paragraph",None), reserved]
|
||||
,[("enclosure",TextRegion), ("whole-line",None), ("symbol",None), reserved, ("document",None)]
|
||||
,[("enclosure",TextRegion), ("whole-line",None), ("symbol",None), reserved, ("document",None), ("previous-region",None)]
|
||||
,[("inclosure",TextRegion), ("s-expr",None), ("s-expr contents",None), reserved, reserved]
|
||||
]
|
||||
|
||||
|
@ -84,18 +84,19 @@ leftHandU = [[reserved, ("re-search backward",None), ("re-search forward",None),
|
|||
|
||||
moveC :: String -> (TeX,Argument)
|
||||
moveC "" = ("",Reserved)
|
||||
moveC x | "avy" `isPrefixOf` x = (textual x,Char)
|
||||
moveC x | "region" `isSuffixOf` x = (textual x,TextRegion)
|
||||
moveC x = (textual x,None)
|
||||
movesC = map (map moveC)
|
||||
rightHandL = movesC
|
||||
[["jump-to-def", "begin-of-line", "previous-line", "next-line", "end-of-line"]
|
||||
,["ace-jump", "smarter-left", "backward-char", "forward-char", "smarter-right", "toggle mark-active"]
|
||||
,["avy-jump", "smarter-left", "backward-char", "forward-char", "smarter-right", "toggle mark-active"]
|
||||
,["pop-mark", "", "begin-of-expr", "end-of-expr", ""]
|
||||
]
|
||||
|
||||
rightHandU = movesC
|
||||
[["reserved", "", "previous-paragraph", "next-paragraph", ""]
|
||||
,["ace-jump-char", "smarter-up", "", "", "smarter-down", ""]
|
||||
,["avy-jump-char", "smarter-up", "", "", "smarter-down", ""]
|
||||
,["pop-mark-quick", "", "begin-of-buffer", "end-of-buffer", ""]
|
||||
]
|
||||
|
||||
|
|
BIN
cheat-sheet.pdf
BIN
cheat-sheet.pdf
Binary file not shown.
Loading…
Add table
Reference in a new issue