Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] Fwd: menus lost

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] Fwd: menus lost


Chronological Thread 
  • From: Kurt Pagani <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Fwd: menus lost
  • Date: Sun, 18 Jan 2015 19:16:07 +0100



Am 18.01.2015 um 18:54 schrieb Friedrich Laher:

>>
> Thanks Kurt! - but where should that my-initbuffer.scm be placed ?

Usually -> $TEXMACS_HOME_PATH/progs/my-init-buffer.scm
see http://www.texmacs.org/tmweb/manual/webman-scheme.en.html for
details. On Unix systems the path $TEXMACS_HOME_PATH likely equals
~/.TeXmacs.

> And I expect,
>
> (kbd-map
>
> ;; ...
>
> ;; toggle header
> ("t h ." (toggle-visible-header))
> )
> will be sufficient?

Yes, indeed. This is just the place to define your personal key
shortcuts and the like. Below is another example to insert equations and
references. Note that you can distinguish in which mode you want the
shortcuts to be active by (:mode in-text?) or (:mode in-math?).


(kbd-map
(:mode in-text?)
("e q u ." (begin (insert "Eq. (" )
(make 'reference)
(insert "equ:")))

("r e f ." (begin (make 'cite)
(insert "bib:")))

("e q ." (make-equation*))

("e q n ." (make-equation))

)

>
> - and I think, such drastic changes of settings should last only until
> the file is closed
> and undoing them not depend onmy-initbuffer.scm .

Each time you create a new buffer, the file
$TEXMACS_HOME_PATH/progs/my-init-buffer.scm is executed, however, there
is no "backward" dependency on that file in your creations, if you mean
that.

>
> Fritz
>
>>>
>
>
--
Kurt



Archive powered by MHonArc 2.6.19.

Top of Page