[O] setting default pdf viewer
how do i set evince as the default. right now xpdf is, but if i remove it, following a link to a pdf file produces nothing. i'm using gnome and evince is the default there (eg through nautilus), so somehow it seems that orgmode has decided to make xpdf the default instead. -- in friendship, prad
Re: [O] setting default pdf viewer
Prad, On Sun, Mar 11, 2012 at 1:31 PM, prad p...@towardsfreedom.com wrote: how do i set evince as the default. right now xpdf is, but if i remove it, following a link to a pdf file produces nothing. i'm using gnome and evince is the default there (eg through nautilus), so somehow it seems that orgmode has decided to make xpdf the default instead. Customize the variable `org-file-apps'. Look at documentation of the variable, for an example and options available. -- Puneeth
[O] Unable to find contrib/
I have org 7.8.03. added to my .emacs (add-to-list 'load-path org-root-dir/contrib/lisp) (require 'org-mime) getting File error: Cannot open load file, org-mime To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Any help will be appreciated.
Re: [O] Unable to find contrib/
Debaditya Mukhopadhyay debadi...@gmail.com writes: I have org 7.8.03. added to my .emacs (add-to-list 'load-path org-root-dir/contrib/lisp) (require 'org-mime) Make sure that org-root-dir has the same value M-x locate-library RET org RET Make sure contrib dir exists. AFAIK, ELPA, Vanilla Emacs doesn't have contrib dir as part of the distribution. Try git. getting File error: Cannot open load file, org-mime To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Any help will be appreciated. --
Re: [O] Unable to find contrib/
Hi Debaditya, Debaditya Mukhopadhyay debadi...@gmail.com writes: I have org 7.8.03. added to my .emacs (add-to-list 'load-path org-root-dir/contrib/lisp) (require 'org-mime) Can you share the value of your load-path? I suspect your (add-to-list 'load-path ...) does not add the correct location. Otherwise I don't see why org-mime.el should not be loaded. HTH, -- Bastien
Re: [O] Unable to find contrib/
Hi Debaditya, On Sun, Mar 11, 2012 at 08:27, Debaditya Mukhopadhyay debadi...@gmail.com wrote: added to my .emacs (add-to-list 'load-path org-root-dir/contrib/lisp) (require 'org-mime) I would recommend using a full path. Unless you have org-root-dir as a subdirectory to where ever you have put this elisp snippet, it is bound to fail. PS: Its nice to see another bong org-mode user. :) -- Suvayu Open source is the future. It sets us free.
Re: [O] Unable to find contrib/
Hi Debaditya, On 11 March 2012 15:24, Jambunathan K kjambunat...@gmail.com wrote: Debaditya Mukhopadhyay debadi...@gmail.com writes: I have org 7.8.03. added to my .emacs (add-to-list 'load-path org-root-dir/contrib/lisp) (require 'org-mime) Make sure that org-root-dir has the same value M-x locate-library RET org RET You could also try M-x locate-library RET org-mime RET ideally this should output something like : Library is file ~/.emacs.d/org-7.8.03/contrib/lisp/org-mime.el (that's what it gives on my setup) If it doesn't give output, then you're either missing the contrib directory (as possible while using ELPA) or you've given the path wrong. Make sure contrib dir exists. AFAIK, ELPA, Vanilla Emacs doesn't have contrib dir as part of the distribution. Try git. getting File error: Cannot open load file, org-mime To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Any help will be appreciated. -- -- Sankalp *** If humans could mate with software, I'd have org-mode's babies. --- Chris League on Twitter. http://orgmode.org/worg/org-quotes.html ***
[O] Sticky Agenda buffer: Announcement and request for testing
Hi everyone, already in Januar, Max Mikhanosha had published the first version of his code to implement multiple agenda buffers. I have worked with him over the last few weeks, and we think that it is now quite stable. Sticky agenda buffers (this is how Max calls it now) means the ability to keep multiple agenda buffer around. So while this does not cut down on the time it takes to create an agenda view, it has massive impact in a situation where you would like to switch between different agenda views frequently. The code it available in the git repository, in the branch max-sticky-agenda. And it would be great if a few people could go ahead and do some testing before we merge it. Testing should be done both with sticky buffers turned off and turned on. We have made it now very simple to test it: git pull origin git checkout max-sticky-agenda Then, in Emacs, use the `*' key in the agenda dispatcher to turn sticky buffers on and off. Since sticky buffers are not made new each time you look at them, you need to update them when you think it is needed, by pressing `g' or `r' in the buffer. To make sure all buffer are rebuilt, use `C-c a * *', so press the star twice to toggle sticky buffer off and back on. This will remove all existing agenda buffers, so that they will be made again when you dispatch to them. Regards - Carsten and Max
Re: [O] setting default pdf viewer
Puneeth Chaganti puncha...@gmail.com writes: On Sun, Mar 11, 2012 at 1:31 PM, prad p...@towardsfreedom.com wrote: how do i set evince as the default. right now xpdf is, but if i remove it, following a link to a pdf file produces nothing. i'm using gnome and evince is the default there (eg through nautilus), so somehow it seems that orgmode has decided to make xpdf the default instead. Customize the variable `org-file-apps'. Look at documentation of the variable, for an example and options available. thx Puneeth! that's what i was looking for! strange thing is that it was already set to default so i thought evince would come up. then i changed it to system and xpdf still opened it. anyway, i altered it to evince -p %1 %s and all is well. -- in friendship, prad
Re: [O] setting default pdf viewer
I much prefer OKULAR over EVINCE On Sun, Mar 11, 2012 at 1:15 PM, prad p...@towardsfreedom.com wrote: Puneeth Chaganti puncha...@gmail.com writes: On Sun, Mar 11, 2012 at 1:31 PM, prad p...@towardsfreedom.com wrote: how do i set evince as the default. right now xpdf is, but if i remove it, following a link to a pdf file produces nothing. i'm using gnome and evince is the default there (eg through nautilus), so somehow it seems that orgmode has decided to make xpdf the default instead. Customize the variable `org-file-apps'. Look at documentation of the variable, for an example and options available. thx Puneeth! that's what i was looking for! strange thing is that it was already set to default so i thought evince would come up. then i changed it to system and xpdf still opened it. anyway, i altered it to evince -p %1 %s and all is well. -- in friendship, prad
Re: [O] setting default pdf viewer
prad p...@towardsfreedom.com wrote: how do i set evince as the default. right now xpdf is, but if i remove it, following a link to a pdf file produces nothing. i'm using gnome and evince is the default there (eg through nautilus), so somehow it seems that orgmode has decided to make xpdf the default instead. But why is org using xpdf, if the system default is evince? What OS are you running? At least on unix/linux-y systems, you shouldn't have to customize org-file-apps: just check ~/.mailcap (and/or /etc/mailcap). IMO, changing mailcap has the advantage that *all* mailcap-enabled applications will do the right thing, whereas customizing org-file-apps just fixes org (I'm assuming of course that you always want evince, not sometimes one and sometimes the other.) Nick
Re: [O] setting default pdf viewer
Nick Dokos nicholas.do...@hp.com writes: prad p...@towardsfreedom.com wrote: how do i set evince as the default. right now xpdf is, but if i remove it, following a link to a pdf file produces nothing. i'm using gnome and evince is the default there (eg through nautilus), so somehow it seems that orgmode has decided to make xpdf the default instead. But why is org using xpdf, if the system default is evince? that's what i can't figure out - but admittedly i haven't looked too deeply into this. What OS are you running? At least on unix/linux-y systems, you shouldn't have to customize org-file-apps: just check ~/.mailcap (and/or /etc/mailcap). i'm on debian squeeze. here's what i found in /etc/mailcap application/pdf; /usr/bin/xpdf '%s'; test=test $DISPLAY != ; description=Portable Document Format; nametemplate=%s.pdf application/x-pdf; /usr/bin/xpdf '%s'; test=test $DISPLAY != ; description=Portable Document Format; nametemplate=%s.pdf application/pdf; evince '%s'; test=test -n $DISPLAY; nametemplate=%s.pdf however, i'm not sure how to interpret this. IMO, changing mailcap has the advantage that *all* mailcap-enabled applications will do the right thing, whereas customizing org-file-apps just fixes org (I'm assuming of course that you always want evince, not sometimes one and sometimes the other.) ya that would be good! since it is consistency that i'm after, i'd prefer to have emacs run evince because it is the system default rather than because i've changed the variable. -- in friendship, prad
Re: [O] setting default pdf viewer
prad p...@towardsfreedom.com wrote: here's what i found in /etc/mailcap application/pdf; /usr/bin/xpdf '%s'; test=test $DISPLAY != ; description=Portable Document Format; nametemplate=%s.pdf application/x-pdf; /usr/bin/xpdf '%s'; test=test $DISPLAY != ; description=Portable Document Format; nametemplate=%s.pdf application/pdf; evince '%s'; test=test -n $DISPLAY; nametemplate=%s.pdf however, i'm not sure how to interpret this. I'm no expert but I believe that the first entry that matches wins: for application/pdf e.g. in this case, if /usr/bin/xpdf is present and executable and the display test succeeeds, xpdf will be used. Otherwise it's going to search further: if evince is present and the display test succeeds, evince will be used. You probably want to experiment by adding entries to ~/.mailcap, so that you don't mess up the system one: entries in ~/.mailcap override. I just have the bare minimum in mine: application/pdf; xpdf -q %s Next question: since xpdf is available and /etc/mailcap prefers it, why is nautilus using evince? Doesn't it use mailcap? I guess not, although I don't know for sure[fn:1], but it wouldn't surprise me if it did its own thing: there are way too many cooks in this kitchen. Nick Footnotes: [fn:1] as you might guess, I don't use nautilus: I have emacs - why would I use anything else?
Re: [O] setting default pdf viewer
On Mon, Mar 12 2012, Nick Dokos wrote: prad p...@towardsfreedom.com wrote: here's what i found in /etc/mailcap application/pdf; /usr/bin/xpdf '%s'; test=test $DISPLAY != ; description=Portable Document Format; nametemplate=%s.pdf application/x-pdf; /usr/bin/xpdf '%s'; test=test $DISPLAY != ; description=Portable Document Format; nametemplate=%s.pdf application/pdf; evince '%s'; test=test -n $DISPLAY; nametemplate=%s.pdf however, i'm not sure how to interpret this. I'm no expert but I believe that the first entry that matches wins: for application/pdf e.g. in this case, if /usr/bin/xpdf is present and executable and the display test succeeeds, xpdf will be used. Otherwise it's going to search further: if evince is present and the display test succeeds, evince will be used. You probably want to experiment by adding entries to ~/.mailcap, so that you don't mess up the system one: entries in ~/.mailcap override. I just have the bare minimum in mine: application/pdf; xpdf -q %s Next question: since xpdf is available and /etc/mailcap prefers it, why is nautilus using evince? Doesn't it use mailcap? I guess not, although I don't know for sure[fn:1], but it wouldn't surprise me if it did its own thing: there are way too many cooks in this kitchen. I think most linux desktop environments use something like xdg-open or gnome-open to determine defaults applications, all my defaults seem to live in /usr/local/share/applications, which can be overridden in the home directory. Nautilus ought to use gnome-open. I've tweaked most of my open-in-external-blah functions (in dired and gnus, for example) to use xdg-open, so the same defaults are used in all my applications, including emacs. -- GNU Emacs 24.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-03-06 on pellet Org-mode version 7.8.03 (release_7.8.03.573.g86131)