From mboxrd@z Thu Jan 1 00:00:00 1970 From: "vendo.libri@libero.it" Subject: R: Re: How to install CDLaTeX in emacs24, on Windows 7? Date: Wed, 20 Jan 2016 17:09:40 +0100 (CET) Message-ID: <78800339.2312491453306180809.JavaMail.httpd@webmail-02.iol.local> Reply-To: "vendo.libri@libero.it" Mime-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLvKM-0001AK-FA for emacs-orgmode@gnu.org; Wed, 20 Jan 2016 11:09:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLvKI-0002zM-DH for emacs-orgmode@gnu.org; Wed, 20 Jan 2016 11:09:46 -0500 Received: from smtp-18.italiaonline.it ([212.48.25.146]:59765 helo=libero.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLvKI-0002zI-3a for emacs-orgmode@gnu.org; Wed, 20 Jan 2016 11:09:42 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello Rasmus,=20 I did as you told me and finally CDLaTeX works in Org mode! The command C-h v RET load-path RET revealed I had many load-paths, among= =20 them:=20 "c:/home/.emacs.d/elpa/auctex-11.88.8/"=20 "c:/Program Files/emacs-24.4/share/emacs/site-lisp"=20 "c:/Program Files/emacs-24.4/share/emacs/24.4/lisp"=20 "c:/Program Files/emacs-24.4/share/emacs/24.4/lisp/org"=20 ...just to name a few! I inserted it in "c:/Program Files/emacs-24.4 /share/emacs/24.4/lisp", restarted the machine and tried it out on an *.org= =20 file. It immediately recognized it! However I now have a new problem -- when I enable CDLaTeX the backtick does= n't=20 work! This is really annoying since many commands of CDLaTeX absolutely nee= d=20 the backtick symbol, ( ` ). When I press the key while in CDLaTeX mode, ema= cs=20 says "Wrong type argument: characterp, 134217782". But if I disable CDLaTeX= and=20 press that key again, Org gives no problem and prints it on screen. I should point out that I use Colemak keyboard layout (not sure if it's=20 relevant) and I have redefined the backtick key and the tilde (Shift+backti= ck)=20 in my .emacs configuration file, in the following way:
;;; a key for tilde symbol
(define-key key-translation-map (kbd "M-2") (kbd "~"))
;;; a key for backtick symbol
(define-key key-translation-map (kbd "M-6") "")
(define-key key-translation-map (kbd "M-9") (kbd "`"))
I suppose I must find a way to tell CDLaTeX that that key is backtick and i= t=20 should accept it in order to execute the commands I'm typing. How do say th= at=20 in e-lisp?=20 >----Messaggio originale---- >Da: Rasmus >Data: 20-gen-2016 15.25 >A: >Ogg: Re: [O] How to install CDLaTeX in emacs24, on Windows 7? > >"vendo.libri@libero.it" writes: > >> I'm not very good at emacs > >Don=E2=80=99t worry. It will come! > >You could check (info "eintr"); it=E2=80=99s a pretty cool book. > >> so when you say "load path" do you mean ? My >> .emacs configuration file is in , so where do I put >> cdlatex.el? Do you know if yasnippet and cdlatex are compatible or not? > >It=E2=80=99s configurable. Check the folders in the variable load-path >(hint: do C-h v RET load-path RET; RET is Enter, C is Ctrl) > >Try to add something like this to your init.el: > > (add-to-list 'load-path (expand-file-name > (concat user-emacs-directory "lisp"))) > >And evaluate it in the session (C-x C-e at last closing parenthesis). >Then look up the value of load-path. It will probably be something like >C:\home\.emacs.d\lisp (I don=E2=80=99t know windows very well, sorry). No= w put >the cdlatex.el in this folder. It=E2=80=99s now in the Emacs load path an= d you, >or Org, can require it. If you want to be fancy, you can byte-compile >cdlatex.el (M-x byte-compile-file). > >> Please refer to the screenshot at this >> link for Emacs my path file: >> http://stackoverflow.com/questions/34884310/emacs-org-cdlatex-mode-where= -do- you-put-the-cdlatex-el-script > >I did not check this. > >Hope it helps, >Rasmus > >--=20 >The right to be left alone is a human right > > >