Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2012, 11:32 AM
semin semin is offline
Senior Member
 
Join Date: Jun 2008
Location: ./South Hemisphere/New Zealand/Wairarapa/Masterton
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Default Emacs (and its Lisp libraries and init file) for PCBSD
I am managing to build an ESS (Emacs Speaks Statistics; /ports/math/ess) PBI module for PCBSD so that I can use a statistical package R (/ports/math/R) under emacs on my amd64 machine. However I have encountered several issues described below:

1. I first tried to use EasyPBI to build the module and then build the PBI, and the PBI size ended up with 230.9MB. As this is just an extension for emacs the file size should have bee much much smaller than this. Is there anyway that I can shrink the file to a more reasonable size?

2. The ess PBI created by using EasyPBI actually didn't work after trying to install on my machine, so I decided to look at the ess homepage (http://ess.r-project.org) and tried to install manually. On the website it says to install ess from the source I have to:

(1) Extract all the files from ess-VERSION.tgz into the directory PREFIX/site-lisp where PREFIX is appropriate for GNU Emacs on your system; PREFIX will most likely be either /usr/share/emacs or /usr/local/share/emacs.

(2) Then, add the line

(require 'ess-site)

to ~/.emacs and restart Emacs.

(3) If you see a buffer named *ESS*, then the simple instructions were most likely successful.

Since PCBSD uses pbi system, I assume the PREFIX here should be /usr/pbi/emacs-amd64. Under this directory, however, there are two site-lisp directories:

(i) /usr/pbi/emacs-amd64/share/emacs/site-lisp/

(ii) /usr/pbi/emacs-amd64/share/emacs/24.0.90/site-lisp/

So which site-lisp directory should I extract the source code ess-VERSION.tgz into?

3. Where is the init file for emacs in PCBSD? I have looked around in my PCBSD system but just couldn't find any init file under ~/.emacs.d directory? I couldn't even find any file like ~/.emacs nor ~/.emacs/init.el anywhere in my system even though the emacs was installed over AppCafe. If any of you have been using emacs for your work on PCBSD, where do you put your init file??

Regards,
Sam
Reply With Quote
  #2  
Old 05-24-2012, 04:46 AM
ideq105 ideq105 is offline
Junior Member
 
Join Date: May 2012
Location: Toronto, Canada
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I copied dot-emacs from another computer so I did not notice that any basic files were missing or not created by default. However, I did miss color-themes and the one I copied must be incompatible since some of the themes do not work. Otherwise, emacs is working ok for me.
Reply With Quote
  #3  
Old 05-24-2012, 04:52 AM
ideq105 ideq105 is offline
Junior Member
 
Join Date: May 2012
Location: Toronto, Canada
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default
And "required" files should be in /usr/local/share/emacs/site-lisp
Reply With Quote
  #4  
Old 06-20-2012, 07:20 PM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 1,605
Thanks: 2
Thanked 147 Times in 129 Posts
Default
This topic was also discussed in more detail on another thread.
http://forums.pcbsd.org/showthread.php?t=16948
__________________
~ Ken Moore ~
PC-BSD/iXsystems
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:49 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.