[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Hyperlatex default emacs key bindings for Debian



On Wed, 2003-08-13 at 19:11, Peter S Galbraith wrote:
> > -(global-set-key "\C-ch" 'hyperlatex-format-buffer)
> > +(eval-after-load "latex"
> > +    '(add-to-list 'after-load-alist
> > +                 '("latex" (define-key LaTeX-mode-map
> > +                             (kbd "C-c C-c h")
> > +                             'hyperlatex-format-buffer)))
> > +  (define-key LaTeX-mode-map
> > +    (kbd "C-c C-c h")
> > +    'hyperlatex-format-buffer))
> > ======================================================================
> > 
> > :)
> > 
> > ?
> 
> No, not really.  `eval-after-load' will by itself hack the
> after-load-list or run the code now if the file is already loaded.  So
> something like:
> 
> (eval-after-load "latex"
>   '(define-key LaTeX-mode-map "\C-c\C-ch" 'hyperlatex-format-buffer))

Thanks. Is the additional define-key still appropriate?

> But use a different key again.  C-c C-c is already used in AUC-TeX's
> LaTeX-mode-map:
> 
> C-c C-c runs the command TeX-command-master

Where do I find which (suitable) keys are still "free"? (Suggest one and
I'll take it. :)

bye,
  Roland

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: