mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] shortcut for moving cursor between words in the same line ?


Chronological Thread 
  • From: LI Hongying <address@hidden>
  • To: François Poulain <address@hidden>
  • Cc: address@hidden
  • Subject: Re: [TeXmacs] shortcut for moving cursor between words in the same line ?
  • Date: Wed, 15 May 2013 12:34:58 +0200

Thanks Francois,

How can I map them to Alt-f and Alt-b ?

Write something like the following and save it as a style file in "~/.TeXmacs/styles/mystyle.ts" ?

(kbd-map
  (:profile emacs)
  (:mode in-text?)
  ("alt key f"  .... and how about the cursor movement !? )
)

Thanks!
Hongying
PS: I read the manual on page 73 and some source code, but I'm still not quite sure.

some source from "texmacs/src/TeXmacs/progs/texmacs/keyboard/prefix-kbd.scm"

(kbd-map
  (:profile emacs)
  ("altcmd" "" "Alternate TeXmacs command"))

(kbd-map
  (:profile emacs)
  ("altcmd" "" "Alternate TeXmacs command"))

source from "/texmacs/src/TeXmacs/plugins/mupad/progs/init-mupad.scm"
(kbd-map
  (:mode in-text?)
  ("text" "" "TeXmacs command")
  ("text:symbol" "" "Insert a special character"))

  (kbd-map
    (:mode in-mupad-prog?)
    ("quot;  (insert "quot;))
    ("\"" (insert "\""))
    ("."  (insert "."))
    ;; ("_"  (insert "_"))
    ("`"  (insert "`")))

  (kbd-map
    (:mode in-mupad-math?)
    ("quot;  (insert "quot;))
    ("\"" (insert "\""))
    ("."  (insert "."))
    ("`"  (insert "`"))))



On Tue, May 14, 2013 at 9:28 PM, François Poulain <address@hidden> wrote:
Le Tue, 14 May 2013 21:26:27 +0200,
LI Hongying <address@hidden> a écrit :

> is there a predefined shortcut for moving cursor between words in the
> same line?
>
> Just like the alt-f / alt-b in emacs, and w/b in vim.

<ctrl> + <left>  / <ctrl> + <right> ?

--
François Poulain <address@hidden>




Archive powered by MHonArc 2.6.19.

Top of page