Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-07 Thread Rainer M Krug
jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes: > Rainer M Krug writes: > >> I would like to open pdfs in emacs (using pdf-viewer) but there >> is only a shortcut (C-c C-o) to open a pdf externally, and no >> shortcut for the menu item below "Open in Emacs" in the context >> men

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-07 Thread Rainer M Krug
John Kitchin writes: > I find C-u RET on a link will open a pdf in emacs. or C-u C-c C-o Thanks - C-u C-c C-o works for me Rainer > > Rainer M Krug writes: > >> Hi >> >> I would like to open pdfs in emacs (using pdf-viewer) but there is only >> a shortcut (C-c C-o) to open a pdf externally, an

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-06 Thread Xavier Maillard
Jorge A. Alfaro-Murillo writes: > Xavier Maillard writes: > >> Thank you very much for these clarifications. Should I expect >> anything from xdg-* when not using a desktop environment at all? >> (I am using something home-brewed where I could add support for >> something like this but that's no

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-06 Thread Jorge A. Alfaro-Murillo
Xavier Maillard writes: Thank you very much for these clarifications. Should I expect anything from xdg-* when not using a desktop environment at all? (I am using something home-brewed where I could add support for something like this but that's not for now). I am not sure. You could try xdg

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-04 Thread Xavier Maillard
Hello Jorge, Jorge A. Alfaro-Murillo writes: > Xavier Maillard writes: > >> What is emacsclient.desktop exactly ? On my slackware, there is >> nothing named like this. > > Inside a desktop environment (e.g. GNOME, KDE, Xfce), xdg-open > passes the arguments to that desktop environment's file-ope

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-04 Thread Jorge A. Alfaro-Murillo
Xavier Maillard writes: What is emacsclient.desktop exactly ? On my slackware, there is nothing named like this. Inside a desktop environment (e.g. GNOME, KDE, Xfce), xdg-open passes the arguments to that desktop environment's file-opener application (gvfs-open, kde-open, or exo-open, respect

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-04 Thread Xavier Maillard
Hello Jorge, Jorge A. Alfaro-Murillo writes: > Alternatively, if you are on Linux, you could make your > emacsclient your default pdf-viewer: > > #+BEGIN_SRC shell > xdg-mime default emacsclient.desktop application/pdf > #+END_SRC What is emacsclient.desktop exactly ? On my slackware, there i

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-03 Thread Nicolas Goaziou
Hello, dbo...@mmm.com (J. David Boyd) writes: > It's too bad there's not some way to find out all the different things C-u > does to commands when used... C-h k C-c C-o Regards, -- Nicolas Goaziou

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-03 Thread Jorge A. Alfaro-Murillo
Rainer M Krug writes: I would like to open pdfs in emacs (using pdf-viewer) but there is only a shortcut (C-c C-o) to open a pdf externally, and no shortcut for the menu item below "Open in Emacs" in the context menu. How can I define a shortcut for this command (or re-use C-c C-o)? If yo

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-03 Thread J. David Boyd
John Kitchin writes: > I find C-u RET on a link will open a pdf in emacs. or C-u C-c C-o > > Rainer M Krug writes: > >> Hi >> >> I would like to open pdfs in emacs (using pdf-viewer) but there is only >> a shortcut (C-c C-o) to open a pdf externally, and no shortcut for the >> menu item below "Op

Re: [O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-03 Thread John Kitchin
I find C-u RET on a link will open a pdf in emacs. or C-u C-c C-o Rainer M Krug writes: > Hi > > I would like to open pdfs in emacs (using pdf-viewer) but there is only > a shortcut (C-c C-o) to open a pdf externally, and no shortcut for the > menu item below "Open in Emacs" in the context menu.

[O] Define Keyboard Shortcut for "Open in Emacs"

2015-04-03 Thread Rainer M Krug
Hi I would like to open pdfs in emacs (using pdf-viewer) but there is only a shortcut (C-c C-o) to open a pdf externally, and no shortcut for the menu item below "Open in Emacs" in the context menu. How can I define a shortcut for this command (or re-use C-c C-o)? Thanks Rainer -- Rainer M. K