From: "vendo.libri@libero.it" <vendo.libri@libero.it>
To: emacs-orgmode@gnu.org
Subject: R: Re: How to install CDLaTeX in emacs24, on Windows 7?
Date: Wed, 20 Jan 2016 17:09:40 +0100 (CET) [thread overview]
Message-ID: <78800339.2312491453306180809.JavaMail.httpd@webmail-02.iol.local> (raw)
Hello Rasmus,
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
them:
"c:/home/.emacs.d/elpa/auctex-11.88.8/"
"c:/Program Files/emacs-24.4/share/emacs/site-lisp"
"c:/Program Files/emacs-24.4/share/emacs/24.4/lisp"
"c:/Program Files/emacs-24.4/share/emacs/24.4/lisp/org"
...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
file. It immediately recognized it!
However I now have a new problem -- when I enable CDLaTeX the backtick doesn't
work! This is really annoying since many commands of CDLaTeX absolutely need
the backtick symbol, ( ` ). When I press the key while in CDLaTeX mode, emacs
says "Wrong type argument: characterp, 134217782". But if I disable CDLaTeX and
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
relevant) and I have redefined the backtick key and the tilde (Shift+backtick)
in my .emacs configuration file, in the following way:
<pre>
;;; 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 "`"))
</pre>
I suppose I must find a way to tell CDLaTeX that that key is backtick and it
should accept it in order to execute the commands I'm typing. How do say that
in e-lisp?
>----Messaggio originale----
>Da: Rasmus <rasmus@gmx.us>
>Data: 20-gen-2016 15.25
>A: <emacs-orgmode@gnu.org>
>Ogg: Re: [O] How to install CDLaTeX in emacs24, on Windows 7?
>
>"vendo.libri@libero.it" <vendo.libri@libero.it> writes:
>
>> I'm not very good at emacs
>
>Don’t worry. It will come!
>
>You could check (info "eintr"); it’s a pretty cool book.
>
>> so when you say "load path" do you mean <C:\home\.emacs.d\elpa\>? My
>> .emacs configuration file is in <C:\home\>, so where do I put
>> cdlatex.el? Do you know if yasnippet and cdlatex are compatible or not?
>
>It’s 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’t know windows very well, sorry). Now put
>the cdlatex.el in this folder. It’s now in the Emacs load path and 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
>
>--
>The right to be left alone is a human right
>
>
>
next reply other threads:[~2016-01-20 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 16:09 vendo.libri [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-01-20 12:26 R: Re: How to install CDLaTeX in emacs24, on Windows 7? vendo.libri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=78800339.2312491453306180809.JavaMail.httpd@webmail-02.iol.local \
--to=vendo.libri@libero.it \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).