This commit is contained in:
Jean-Philippe Bernardy 2016-08-27 21:53:11 +02:00
parent 80ec2a60d8
commit 176151320d
3 changed files with 6 additions and 6 deletions

View file

@ -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."

View file

@ -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", ""]
]

Binary file not shown.