From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey Spencer Subject: Re: Org-mode export doesn't work anymore after moving to OsX Date: Wed, 13 Apr 2016 16:58:52 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c123fccd2e55a053060b144 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqO9M-0002ZK-Dg for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 13:01:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqO86-0002ag-Qa for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 13:00:20 -0400 Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:35486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqO86-0002ac-I1 for emacs-orgmode@gnu.org; Wed, 13 Apr 2016 12:59:02 -0400 Received: by mail-vk0-x232.google.com with SMTP id t129so78039435vkg.2 for ; Wed, 13 Apr 2016 09:59:02 -0700 (PDT) In-Reply-To: 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" To: John Kitchin Cc: "emacs-orgmode@gnu.org" --94eb2c123fccd2e55a053060b144 Content-Type: text/plain; charset=UTF-8 How do I change the below to load for example: ~/Dropbox/kitchingroup/jmax/ instead of the current directory the init.el file is in. Then I can link init.el to .emacs.d and I think all will work properly. (defconst starter-kit-dir (file-name-directory (or load-file-name (buffer-file-name)))) On Wed, Apr 13, 2016 at 10:49 PM John Kitchin wrote: > That is done automatically if you run it like: > > emacs -q -l /path/to-init.el > > the jmax directory is stored at load time > (https://github.com/jkitchin/jmax/blob/master/init.el#L16) and the > variable is used every where else that is needed. > > alternatively, you might try (with your path obviously) in your init > file: > > (load-file "~/Dropbox/kitchingroup/jmax/init.el") > > It should do the same thing. > > > Jeffrey Spencer writes: > > > Well I installed emacs as you did and still didn't work but if I use your > > configuration file it works fine and exports. I like the features for > > org-mode so I might merge some of the things in my setup files and just > use > > your configuration. What's the best way to get it as the default on > > macbook? I know I can link the init.el to .emacs but how do I make sure > it > > knows where the jmax folder resides on the system. > > > > > > On Wed, Apr 13, 2016 at 12:14 PM John Kitchin > > wrote: > > > >> How did you install emacs? > >> > >> You can see how I do it here: > >> > >> https://github.com/jkitchin/jmax/blob/master/install-jmax-mac.sh#L12 > >> > >> this has worked for me for a long time. > >> > >> Jeffrey Spencer writes: > >> > >> > I keep getting the following error when exporting from org-mode but > >> > everything else seems to work fine except maybe spell-checking is > broken > >> > too. I just pulled the newest version from git as well. > >> > > >> > ``` > >> > File mode specification error: (void-function exec-installed-p) > >> > Debug (ox-odt): Searching for OpenDocument styles files... > >> > Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times] > >> > Debug (ox-odt): Trying > >> > /Users/big/Dropbox/SyncedPrograms/emacs/loadPath/etc/styles/... > >> > Debug (ox-odt): Trying > >> > > >> > /Users/big/Dropbox/SyncedPrograms/emacs/loadPath/org-mode/lisp/etc/styles/... > >> > Debug (ox-odt): Trying > >> > /usr/local/Cellar/emacs/24.5/share/emacs/24.5/etc/org/... > >> > Debug (ox-odt): Using styles under > >> > /usr/local/Cellar/emacs/24.5/share/emacs/24.5/etc/org/ > >> > Debug (ox-odt): Searching for OpenDocument schema files... > >> > Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times] > >> > Debug (ox-odt): No OpenDocument schema files installed > >> > and: Symbol's function definition is void: exec-installed-p > >> > ``` > >> > > >> > cheers, > >> > Jeff > >> > >> > >> -- > >> Professor John Kitchin > >> Doherty Hall A207F > >> Department of Chemical Engineering > >> Carnegie Mellon University > >> Pittsburgh, PA 15213 > >> 412-268-7803 > >> @johnkitchin > >> http://kitchingroup.cheme.cmu.edu > >> > > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > --94eb2c123fccd2e55a053060b144 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

How do I change the below to load for example:=C2=A0~/Dropbox/kitchingroup/jmax/ instead of the c= urrent directory the init.el file is in. Then I can link init.el to .emacs.d and I think all will work properly= .

(defconst starter-kit-dir (file-name-directory= (or load-file-n= ame (buffer-file-name))))



On Wed, Apr 13, 2016 at = 10:49 PM John Kitchin <jkitch= in@andrew.cmu.edu> wrote:
Th= at is done automatically if you run it like:

emacs -q -l /path/to-init.el

the jmax directory is stored at load time
(https://github.com/jkitchin/jmax/blob/mas= ter/init.el#L16) and the
variable is used every where else that is needed.

alternatively, you might try (with your path obviously) in your init
file:

(load-file "~/Dropbox/kitchingroup/jmax/init.el")

It should do the same thing.


Jeffrey Spencer writes:

> Well I installed emacs as you did and still didn't work but if I u= se your
> configuration file it works fine and exports. I like the features for<= br> > org-mode so I might merge some of the things in my setup files and jus= t use
> your configuration. What's the best way to get it as the default o= n
> macbook? I know I can link the init.el to .emacs but how do I make sur= e it
> knows where the jmax folder resides on the system.
>
>
> On Wed, Apr 13, 2016 at 12:14 PM John Kitchin <jkitchin@andrew.cmu.edu> > wrote:
>
>> How did you install emacs?
>>
>> You can see how I do it here:
>>
>> https://github.com/jkit= chin/jmax/blob/master/install-jmax-mac.sh#L12
>>
>> this has worked for me for a long time.
>>
>> Jeffrey Spencer writes:
>>
>> > I keep getting the following error when exporting from org-mo= de but
>> > everything else seems to work fine except maybe spell-checkin= g is broken
>> > too. I just pulled the newest version from git as well.
>> >
>> > ```
>> > File mode specification error: (void-function exec-installed-= p)
>> > Debug (ox-odt): Searching for OpenDocument styles files... >> > Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2= times]
>> > Debug (ox-odt): Trying
>> > /Users/big/Dropbox/SyncedPrograms/emacs/loadPath/etc/styles/.= ..
>> > Debug (ox-odt): Trying
>> >
>> /Users/big/Dropbox/SyncedPrograms/emacs/loadPath/org-mode/lisp/etc= /styles/...
>> > Debug (ox-odt): Trying
>> > /usr/local/Cellar/emacs/24.5/share/emacs/24.5/etc/org/...
>> > Debug (ox-odt): Using styles under
>> > /usr/local/Cellar/emacs/24.5/share/emacs/24.5/etc/org/
>> > Debug (ox-odt): Searching for OpenDocument schema files... >> > Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2= times]
>> > Debug (ox-odt): No OpenDocument schema files installed
>> > and: Symbol's function definition is void: exec-installed= -p
>> > ```
>> >
>> > cheers,
>> > Jeff
>>
>>
>> --
>> Professor John Kitchin
>> Doherty Hall A207F
>> Department of Chemical Engineering
>> Carnegie Mellon University
>> Pittsburgh, PA 15213
>> 412-268-7803
>> @johnkitchin
>> http://kitchingroup.cheme.cmu.edu
>>


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
--94eb2c123fccd2e55a053060b144--