Re: [ESS] How to Duplicate Previous Functionality/Workflow
On Fri, Sep 22, 2023, at 2:04 AM, Stephen J. Eglen wrote: >> (You probably didn't do this, because Docview isn't great for >> pdfs. The now abandoned package pdf-tools was a great option for >> reading pdfs inside Emacs). > > just to add a couple of comments: > > 1. pdf-tools was forked about 1-2 years ago, and now active at: > > https://github.com/vedang/pdf-tools > > It can be a bit fussy to install compared to most Emacs packages, > because of dependencies and the binaries it creates. However, I like it > and use it regularly. > Thanks, that's great news! pdf-tools was my preferred pdf viewer when it was active. I'll definitely check out the new fork ty __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] How to Duplicate Previous Functionality/Workflow
On 22 September 2023 at 07:04, Stephen J. Eglen via ESS-help wrote: | 2. A non-answer to the original question, but I prefer writing Makefiles | to build my documents, rather than using Emacs functionality. Emacs has | a good interface to running make (e.g. through M-x compile). Use | whatever is best for you, but just thought I'd mention it. Even simpler: I just rely on M-x compile-command (and its shortcut). On the first invocation I edit the out the existing stanza 'make -k' that would get invoked, and make it 'render.r filename.Rmd' to process the file I currently edit. Evince refreshed automagically. This is arguably a little pedestrian, but it takes me away from a land with a language I do not speak (elisp) to one I am rather comfortable in (scripts, shell scripts, littler aka 'r' scripts, Rscript, ...) that do the task. polymode has sometimes been finicky to install / updated, esp a few years ago, and is also (if I read the tea leaves correctly) one of the reasons we have not had an ESS release in five (5) years (which really is rather sad, at least to this long time user) but it has been working fine the last couple of years. I now settled on a mix of elpa-* packages I get from Ubuntu and a number of 'directly from elpa/melpa' packages. By and large it is still a great editing experience. I would guestimate that for the last decade I wrote most output appearing as html (ie course website) and more frequently pdf (slides for talks or lectures, short papers) in it. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] How to Duplicate Previous Functionality/Workflow
> (You probably didn't do this, because Docview isn't great for > pdfs. The now abandoned package pdf-tools was a great option for > reading pdfs inside Emacs). just to add a couple of comments: 1. pdf-tools was forked about 1-2 years ago, and now active at: https://github.com/vedang/pdf-tools It can be a bit fussy to install compared to most Emacs packages, because of dependencies and the binaries it creates. However, I like it and use it regularly. 2. A non-answer to the original question, but I prefer writing Makefiles to build my documents, rather than using Emacs functionality. Emacs has a good interface to running make (e.g. through M-x compile). Use whatever is best for you, but just thought I'd mention it. Stephen __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] How to Duplicate Previous Functionality/Workflow
On Thu, Sep 21, 2023, at 9:43 PM, Bassett Jr,Roland L via ESS-help wrote: > > 1. How can I customize the exporter to use my preferred PDF viewer > (evince) instead of DocView? I think the current default is for Emacs to open the exported file itself. To change this, you need to configure Emacs to send pdf files to an external program to open. You can do this with the `openwith` package: (require 'openwith) (openwith-mode t) (setq openwith-associations '(("\\.pdf\\'" "evince" (file You'll need to install `openwith`. It's available on Melpa (https://melpa.org/#/?q=openwith). Note this will make Emacs do this for all pdf files, not just ones from polymode. So if you use Docview to open pdf files in other contexts, this won't work anymore. (You probably didn't do this, because Docview isn't great for pdfs. The now abandoned package pdf-tools was a great option for reading pdfs inside Emacs). See also: https://emacs.stackexchange.com/questions/3105/how-to-use-an-external-program-as-the-default-way-to-open-pdfs-from-emacs - ty __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] How to Duplicate Previous Functionality/Workflow
On Thu, Sep 21, 2023, at 9:43 PM, Bassett Jr,Roland L via ESS-help wrote: > 2. Different topic, but how can I duplicate the functionality of the > "_" key to insert "<-" instead of just "_"? That feature is now called `ess-insert-assign`, and you need to bind it to the `_` key yourself. From the example in the manual: (define-key ess-r-mode-map "_" #'ess-insert-assign) (define-key inferior-ess-r-mode-map "_" #'ess-insert-assign) I think this is only documented on the *New Features* page of the manual now, which I never think to check when I'm looking for things. - ty __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help