* Re: place of .els
2006-05-10 22:17 place of .els Gary Wessle
@ 2006-05-10 23:09 ` Peter Dyballa
2006-05-11 0:25 ` John Conrad
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2006-05-10 23:09 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 11.05.2006 um 00:17 schrieb Gary Wessle:
> should I place it somewhere under /usr/local/...?
Yes: with site-lisp in it! Then the file will survive a new
installation or a de-installation.
--
Greetings
Pete
The light at the end of the tunnel has been turned off due to budget
cuts.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: place of .els
2006-05-10 22:17 place of .els Gary Wessle
2006-05-10 23:09 ` Peter Dyballa
@ 2006-05-11 0:25 ` John Conrad
2006-05-11 1:37 ` Burton Samograd
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: John Conrad @ 2006-05-11 0:25 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1075 bytes --]
On 11 May 2006 08:17:57 +1000, Gary Wessle <phddas@yahoo.com> wrote:
>
> Hi
>
> I want to use extview.el which is not supplied by debian/testing, so I
> downloaded it and now what? where do I place it to be safe? the
> load-path has lots and lots of locations, should I place it somewhere
> under /usr/local/...?
I have a lisp directory in my home directory where I store files like the
one you're talking about. I prefer this because I backup my home directory
more carefully than /usr/local/, and it's where I put my own homemade elisp
concoctions as well as those that don't come standard with emacs.
Anyway, the point is that you're not limited to the locations that are
currently listed in your load-path variable. If you want to add a new
location to your load-path, add this line to your .emacs file:
(add-to-list 'load-path "/path/to/directory")
Then restart emacs (or manually reload your .emacs file) (or M-x
eval-last-sexp with point at the end of the expression) and you're new
location will be ready to serve.
John Emerson Conrad
[-- Attachment #1.2: Type: text/html, Size: 1379 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: place of .els
2006-05-10 22:17 place of .els Gary Wessle
2006-05-10 23:09 ` Peter Dyballa
2006-05-11 0:25 ` John Conrad
@ 2006-05-11 1:37 ` Burton Samograd
[not found] ` <mailman.1669.1147307148.9609.help-gnu-emacs@gnu.org>
2006-05-11 8:14 ` Tim X
4 siblings, 0 replies; 7+ messages in thread
From: Burton Samograd @ 2006-05-11 1:37 UTC (permalink / raw)
Gary Wessle <phddas@yahoo.com> writes:
> Hi
>
> I want to use extview.el which is not supplied by debian/testing, so I
> downloaded it and now what? where do I place it to be safe? the
> load-path has lots and lots of locations, should I place it somewhere
> under /usr/local/...?
/usr/local/share/emacs/site-lisp
then you can put:
(require 'extview)
in your .emacs file to load it at startup. Read the comments at the
start of the file for more information on how to use and set it up.
--
burton samograd kruhft .at. gmail
kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <mailman.1669.1147307148.9609.help-gnu-emacs@gnu.org>]
* Re: place of .els
[not found] ` <mailman.1669.1147307148.9609.help-gnu-emacs@gnu.org>
@ 2006-05-11 3:59 ` Gary Wessle
2006-05-11 8:23 ` Tim X
0 siblings, 1 reply; 7+ messages in thread
From: Gary Wessle @ 2006-05-11 3:59 UTC (permalink / raw)
"John Conrad" <john.emerson.conrad@gmail.com> writes:
> On 11 May 2006 08:17:57 +1000, Gary Wessle <phddas@yahoo.com> wrote:
> >
> > Hi
> >
> > I want to use extview.el which is not supplied by debian/testing, so I
> > downloaded it and now what? where do I place it to be safe? the
> > load-path has lots and lots of locations, should I place it somewhere
> > under /usr/local/...?
>
>
> I have a lisp directory in my home directory where I store files like the
> one you're talking about. I prefer this because I backup my home directory
> more carefully than /usr/local/, and it's where I put my own homemade elisp
> concoctions as well as those that don't come standard with emacs.
>
> Anyway, the point is that you're not limited to the locations that are
> currently listed in your load-path variable. If you want to add a new
> location to your load-path, add this line to your .emacs file:
>
> (add-to-list 'load-path "/path/to/directory")
I did just that and placed in my .emacs the lines
(require 'extview)
(push '("\\.pdf$" . "xpdf %s") extview-application-associations)
(push '("\\.html$" . "firefox %s") extview-application-associations)
now when I C-x C-f a pdf file, it opens it with xpdf, but not a html
file where I expected it to use firefox, any idea why?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: place of .els
2006-05-11 3:59 ` Gary Wessle
@ 2006-05-11 8:23 ` Tim X
0 siblings, 0 replies; 7+ messages in thread
From: Tim X @ 2006-05-11 8:23 UTC (permalink / raw)
Gary Wessle <phddas@yahoo.com> writes:
> "John Conrad" <john.emerson.conrad@gmail.com> writes:
>
>> On 11 May 2006 08:17:57 +1000, Gary Wessle <phddas@yahoo.com> wrote:
>> >
>> > Hi
>> >
>> > I want to use extview.el which is not supplied by debian/testing, so I
>> > downloaded it and now what? where do I place it to be safe? the
>> > load-path has lots and lots of locations, should I place it somewhere
>> > under /usr/local/...?
>>
>>
>> I have a lisp directory in my home directory where I store files like the
>> one you're talking about. I prefer this because I backup my home directory
>> more carefully than /usr/local/, and it's where I put my own homemade elisp
>> concoctions as well as those that don't come standard with emacs.
>>
>> Anyway, the point is that you're not limited to the locations that are
>> currently listed in your load-path variable. If you want to add a new
>> location to your load-path, add this line to your .emacs file:
>>
>> (add-to-list 'load-path "/path/to/directory")
>
>
> I did just that and placed in my .emacs the lines
>
> (require 'extview)
> (push '("\\.pdf$" . "xpdf %s") extview-application-associations)
> (push '("\\.html$" . "firefox %s") extview-application-associations)
>
> now when I C-x C-f a pdf file, it opens it with xpdf, but not a html
> file where I expected it to use firefox, any idea why?
>
This is a wag (wild arse guess) and I've got no real facts, so I
cannot claim its a swag (scientific wild arse guess), but it could be
that *.html is associated with a mode in auto-mode-alist and that is
taking precedence over the external viewer alist. You could try
removing it and see if that helps.
Personally, I use browse-url to view a rendered version of an html
file and bind that to a key i.e.
(global-set-key "\C-c\C-z." 'browse-url-at-point)
(global-set-key "\C-c\C-zb" 'browse-url-of-buffer)
(global-set-key "\C-c\C-zr" 'browse-url-of-region)
(global-set-key "\C-c\C-zu" 'browse-url)
(global-set-key "\C-c\C-zv" 'browse-url-of-file)
(add-hook 'dired-mode-hook
(lambda ()
(local-set-key "\C-c\C-zf" 'browse-url-of-dired-file)))
Using customize, I have set the browse-url-function to my preferred
browser.
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: place of .els
2006-05-10 22:17 place of .els Gary Wessle
` (3 preceding siblings ...)
[not found] ` <mailman.1669.1147307148.9609.help-gnu-emacs@gnu.org>
@ 2006-05-11 8:14 ` Tim X
4 siblings, 0 replies; 7+ messages in thread
From: Tim X @ 2006-05-11 8:14 UTC (permalink / raw)
Gary Wessle <phddas@yahoo.com> writes:
> Hi
>
> I want to use extview.el which is not supplied by debian/testing, so I
> downloaded it and now what? where do I place it to be safe? the
> load-path has lots and lots of locations, should I place it somewhere
> under /usr/local/...?
>
> thanks
It depends on whether it is just you who wants to run it or other
users as well. The easiest way to do it is put the .el file in
/usr/local/share/emacs/site-lisp and then make sure that directory is
in your load path. If it is not, add the following to your .emacs
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp")
If you have multiple users and run multiple versions of emacs and the
code needs compiling into .elc, you will need to mirror the approach
used by Debian to get the same easy multi-user/multi-version support.
However, I'd be more inclined to remove all but one version of emacs
and then tell people what to add to their .emacs file if they want
that bit of code.
Personally, I prefer to put all my own locally non-debian packaged
stuff in /usr/local, which I create in its own disk partition. I also
do /home in its own partition. Then, if I decide I want to do a fresh
install or if for some reason I wanted to switch to a different linux
distro, I can do a format on the other patitions to ensure they are
clean before the install and leave or my own hand installed and
configured packages alone. I also find it makes backups easier -
generally, I don't bother doing backups on partitions which only
contain software installed from a distro as you may as well just do a
re-install if required - it can often be faster than restoring from a
backup, especially if it uses incremental backups.
Tim
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 7+ messages in thread