I have been a loyal user of emacs. Recently, I switched to using spacemacs and enjoy it very much. For a while, I was able to use Stata in org-mode in spacemacs through ESS. After a recent update, I cannot use Stata in org-mode anymore because Stata is obsolete the latest release of ESS. When I try to edit the following code block,
#+begin_src stata :tangle yes
webuse auto;
#+end_src
I cannot open the clock block and get an error message as follows
org-edit-src-code: No such language mode: stata-mode
I am using the develop branch of spacemacs 0.300 with emacs 27.0.50. And, I output my system information using
uname -a
with the following output
Linux 4.15.0-112-generic #113~16.04.1-Ubuntu x86_64 GNU/Linux
I do not think I can use any layer other than ESS in spacemacs to solve this problem. How do I use Stata in org-mode with spacemacs?
I temporarily solve this problem by downgrading ESS to an earlier version, and it works for now. I take steps as follows.
Remove the ess layer from dotspacemacs-configuration-layers of .spacemacs
Add the following into dotspacemacs-additional-packages of .spacemacs
(ess :location (recipe :fetcher git :url "https://github.com/emacs-ess/ESS.git" :commit "14b9a3091916a1cb74dec7336e8461590dfc6a7d" :files ("lisp/.el" "contrib/lisp/.el" "doc/dir" "doc/*.texi" "etc")))
Then restart spacemacs (SPC q r).
#7071 and #6575 are helpful references
Related
In emacs I have got the tuareg mode enabled in the top and the shell in the bottom without color syntax. How can I have color syntax in the shell?
In order to get here, I installed camllight using this script http://judicael.courant.free.fr/2015/02/20/installationcaml.html
then, I installed melpa
M-x list-packages
to search and to install tuareg. And finally, I edited .emacs with (add to list 'load-path "home/pi/.emacs.d/lisp") where lisp is a directory which contain tuareg.el, camldebug.el, tuareg-site-file-el
emacs window:
The mode that you're looking for is not the one that comes with Tuareg. The guy in the video is using the inferior-ocaml mode that is a part of an old caml-mode that used to be distributed with the OCaml compiler. Unless you really want the exact setup as in the video, I would suggest you use a more modern Tuareg mode together with the OCaml Merlin. Otherwise, you should remove Tuareg and install caml-mode using M-x package-install <RET> caml-mode <RET> (see also the documentation on the Github page of the project for more details).
I have an init.el file which only consists of a single line
(require 'package)
I am running emacs 23.1 on Red Hat Enterprise Linux Server Release 6.10 (Santiago)
Execution of emacs --debug-init returns the following screen:
I have absolutely no clue as to what this means.
This was actually a very preliminary step to following the instructions on setting up elpy as IDE for python... After I had no success in using the standard mode with python3 instead of just python
Could it be that these machines cannot access the internet?
package.el is not part of Emacs 23. You can obtain it here, I believe. (That's
https://github.com/technomancy/package.el.)
No idea whether that version of the library is compatible out of the box with Emacs 23.
But you get the idea - search for package.el online, download it, and put it in your load-path. Then your require should pick it up.
In Windows 10, Emacs 26.3 with inbuilt org version 9.1.9 is working fine (Packaged binaries). Recently I tried Emacs 27.1. with inbuilt org version 9.3. While loading .org files for first time, I get the message (Shell command succeeded with no output) and org files are not rendered at all. To render it, I have to use M-x org-mode or reload the file in the buffer again. I tried to run without loading .emacs.d folder packages. The issue persists. It means, it has nothing to do with already installed other packages. I also tried with latest org version 9.3.7 and and also tried with emacs -Q. Still the issue persists. Any solutions?
I know I'm very late, but found in Jeffs words:
Evil remaps C-i to evil-jump-forward to emulate Vim’s jump lists feature2, which overwrites the default mapping for the TAB key in Org mode.
To fix the tab key’s functionality in Org mode, sacrifice Evil’s C-i backward jumping by turning it off in your configuration with the evil-want-C-i-jump option.
So to solve, just edit your init.el to look like this:
;; Install Evil and disable C-i to jump forward to restore TAB functionality in Org mode.
(use-package evil
:init (setq evil-want-C-i-jump nil)
:config (evil-mode))
source: https://jeffkreeftmeijer.com/emacs-evil-org-tab/
I want to use the command C-c C-x C-l to preview latex code in org-mode. Since the emacs-nox cannot do this, I tried apt-get install emacs24. However, after I have installed the emacs24 with GUI, I get an error like
can't find \`latex'(needed to convert LaTeX fragments to images)
I have installed texlive2016, and I can latex *.tex in shell command.
I added the /paht/to/latex to .emacs, but it don't work well.
Adding the following to my init.el makes it work:
;; Making emacs find latex (so that C-c C-x C-l works on orgmode)
(setenv "PATH" (concat ":/Library/TeX/texbin/" (getenv "PATH")))
(add-to-list 'exec-path "/Library/TeX/texbin/")
It is not a very pretty solution, but it does the job and is very easy to modify and understand.
This solution worked on a Mac running macOS Sierra and Emacs v25.1.
My crystal ball tells me that the problem is that you're not starting the GUI Emacs from a terminal, so it can't inherit your $PATH settings. See for example https://emacs.stackexchange.com/questions/10722/ (that question is within OSX, but the same problem appears in other systems).
Apparently you can set env-vars globally (so that they affect all applications, including those started directly from the GUI) in ~/.pam_environment (that's for GNU/Linux systems). Note that this is only consulted when you login, so you need to logout+login for changes to take effect.
What I did:
emacs 24.3 for OS X was downloaded from http://emacsformacosx.com/, which comes with bundled org-mode version 7.9.3f.
I upgraded org-mode by following the method from here:
http://orgmode.org/manual/Installation.html#Installation
with the method#1 Using Emacs packaging system.
I included (package-initialize) in my .emacs profile.
Problems:
I no longer can run org-babel
C-c, C-e, b to export selected portion for html export.
When I run C-c C-e h h, it says "Invalid Key"
When I run M-x org-publish-project , it says "Invalid function: (......)".
Can anyone can shed some lights on the problem?
D'oh!
The HTML export problem can be solved if I simply remove
(require 'org-publish) for org-version 7.x.x, and replace it with
(require 'ox-publish) for org-version 8.x.x at the very top of my .emacs file.
Why the didn't the official site just say so? D'oh!
As of 2013 Oct 31, the babel problem is still unsolved as babel site mentions that it is integrated in org-version 7.x.x but does not mention anything about 8.x.x. (see http://orgmode.org/worg/org-contrib/babel/). Is there anyone using the bleeding edge version of babel with org-version 8.x.x without problem?