Hot answers tagged

2

Note that script-proc-buffer will always be new-buffer since that is an existing buffer when make-comint-in-buffer is called. To bind kill-process to the key sequence q make it somehow interactive and use local-set-key with the wanted buffer current, e.g.: (with-current-buffer script-proc-buffer (local-set-key "q" (lambda () (interactive) (kill-process)))...


2

I believe the reason lies in org-babel-R-write-object-command (defconst org-babel-R-write-object-command "{ function(object,transfer.file) { object invisible( if ( inherits( try( { tfile<-tempfile() write....


1

The reason I was having this problem is that I didn't have (require 'poly-R) in my init file. I only had (require 'poly-markdown). After adding (require 'poly-R), I can now press Enter within a chunk and it will stay in ess-r-mode.


1

I have had some decent success with ess-r-xref. (require 'ess-r-xref) and then M-. (xref-find-definitions) with point on some symbol. It should prompt you to save a TAGS file. Then M-. should do what you want. Check out https://www.gnu.org/software/emacs/manual/html_node/emacs/Xref.html Alternately: I'm a big proponent of the Language Server Protocol. ...


1

Workaround (?), before a more straightforward (i.e. "automated") solution, based on this answer: open a terminal as group and do: xauth list Copy the last line from the list and, in another terminal as user, do: xauth add the_copied_line Then DISPLAY=localhost:14.0 (or whatever the number you've got in the copied line).


1

I am using the package shackle for that. After the package is installed the following setting should do what you want (setq shackle-rules '(("*R:?[0-9]?*" :regexp t :same t))) (shackle-mode 1) If you do not want to use an external package you might be able to adapt this answer https://emacs.stackexchange.com/a/13585/15268 to your needs. Note: the regexp ...


1

Maybe not as elegant as what you want, but there are functions for each step in your workflow: ess-switch-to-inferior-or-script-buffer, C-c C-z set-mark, C-<space> comint-previous-prompt, C-c C-p kill-ring-save, M-w ess-switch-to-inferior-or-script-buffer, C-c C-z The elisp version would be: (defun kill-last-output () (interactive) (save-window-...


1

I was able to reproduce the behavior with your .emacs file. I found one syntax error that I thought might be the issue: (custom-set-variables '(haskell-tags-on-save t) that line is missing a closing paren. however, adding it did not solve the problem. I had to move the org-babel-do-load-languages call above the fill-column-indicator section in order for ...


Only top voted, non community-wiki answers of a minimum length are eligible