According to the comments inside org-install.el in Emacs 26.1: "The file org-install is obsolete." There is nothing inside that file except some comments about backwards compatibility, a provide statement and some file-local variables. Therefore, use (require 'org) to load the main library.
Q: How did I learn about that?
A: Type M-x find-library RET ...
As I can see from one of your comments, the main point is to run Emacs faster in some cases. Then there are several options for you.
You can load your GUI-related configuration only when you run Emacs in GUI mode. You can use something like the following code (just place your GUI-related configuration in init_gui.el):
You can achieve this "fast load, slow load" using the server/client functionality of emacs, which works like this:
Emacs can be started as a server. This can either be done as a stand-alone, running a server in the background. Or, if you want to, say, run a main GUI instance of emacs, the GUI and server can be started at the same time.
Once the server is ...
It depends on what you want to do, essentially.
If you have lots of extra functionality to add, then have a look at creating your own private layer. There is a tutorial here, and on the spacemacs website, here.
If you plan to have small config files under source control, then having them within your .emacs.d is not a great idea because .emacs.d is already ...
Assuming you're using OSX, the modeline doesn't display correctly due to a bug with srgb. The if you don't want to set srgb to nil you should use emacs-mac, a osx-friendly version by Mitsuharu Yamamoto.
You can also do this: (setq powerline-default-separator 'utf-8)
If you're not on OSX, then there is a similar srgb problem for your operating system and ...
Here is an example that I think fits your description.
(defun cesco/automatic-push ()
(magit-run-git "commit" "--all"
(format-time-string "--message=%F %R"))
(let ((current-branch (magit-get-current-branch)))
(concat "origin/" current-branch)
You probably use the AUCTeX package to work on .tex files. This package actively searches for some programs related to TeX or LaTeX work. It's authors wrote that.
For markdown-mode this just wasn't done. For whatever reason. Maybe there are just too many different markdown converters out there that it makes sense to let the user decide. Thus, they gave you ...
A cursory look at the sources (I do not have the package installed) suggests that straight-base-dir is the operative variable:
Directory in which the straight/ subdirectory is created.
Defaults to `user-emacs-directory'.
So customize it and see if it works.
You should insert (provide 'my-org-note) at the end of your my-org-note.el file. (and similar for the other files).
Through this call Emacs can update the feature list with the required package symbol. This mechanism prevents re-evaluation of lisp code multiple times.
Have a read at Xah's Website or the official Emacs documentation for more details.
You can solve your problem easily by configuring the variable org-packages-alist, as shown in documentation:
org-latex-packages-alist is a variable defined in ‘org.el’. Its value
Documentation: Alist of packages to be inserted in every LaTeX header.
These will be inserted after ‘org-latex-default-packages-alist’. Each
element is ...
I think what you are trying to achieve does not really require the workaround of generating a header.tex file, though you could certainly do that with Emacs.
The best thing in your case would be to define a custom LaTeX class, so at the beginning of your .org file you would simply call #+LATEX_CLASS: myarticle, for example:
Put this in your dotspacemacs/user-config:
(defun my/enable-word-wrap ()
(setq-local word-wrap t))
(add-hook 'text-mode-hook #'my/enable-word-wrap)
That works for me, for example, if I open a new file with SPC f f and then SPC SPC text-mode.
toggle-word-wrap is an interactive command (not merely a non-interactive function) that does as it says: toggles ...
The workaround is the patch from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=15539 which allows you to specify .emacs.d location via EMACS_USER_DIRECTORY environment variable. Unfortunately it's not yet in upstream because some people think that 30 lines (half of which are comments) is too much of added complexity for emacs.
So either take this patch and ...