Questions tagged [load-path]
47 questions
22
votes
2 answers
How can I improve startup time despite many packages?
TL;DR I have such a huge amount of packages that it's hurting my startup time. If you don't believe that could be the case, read on.
My Emacs startup time is quite small. I don't use use-package, I just set tons of hooks and autoloads so that…

GDP2
- 1,340
- 9
- 25
8
votes
1 answer
Require a file in the current directory without setting load-path
I have test code that wants to require some utility code in the same directory. I would prefer to not update the load-path, as most of the time, I do not want me or any other user who has checked out this code to be looking in this directory.
It…

Troy Daniels
- 487
- 2
- 13
8
votes
1 answer
Flycheck could not find file under load-path
I have some elips *.el file in my ~/.emacs.d/gman/ folder, e.g. smart-inputp-methods.el. This folder is added to my load path at the beginning of .emacs file:
(add-to-list 'load-path "~/.emacs.d/gman")
Leter I importing it:
(require…

Geradlus_RU
- 625
- 7
- 17
6
votes
1 answer
Warning message about load-path.
When I start up emacs, I see
Warning (initialization): Your `load-path' seems to contain
your `.emacs.d' directory: ~/.emacs.d/
This is likely to cause problems...
Consider using a subdirectory instead, e.g.: /home/faheem/.emacs.d/lisp
I think I…

Faheem Mitha
- 406
- 4
- 16
6
votes
1 answer
Elisp files in load-path are not loaded on emacs start
What failed for me?
(add-to-list 'load-path "~/.emacs.d/others")
what worked for me?
(mapc 'load (file-expand-wildcards "~/.emacs.d/others/*.el"))
Functions defined in elisp files lying @~/.emacs.d/others were not loaded in the first case.
So, is…

Madhavan
- 1,957
- 12
- 28
5
votes
2 answers
how do i install "solarized-theme"?
first i do this in a terminal: $ git clone git://github.com/altercation/solarized.git, that creates a directory in my home called "solarized", after that i add this 2 lines to my init.el
(add-to-list 'load-path…

Ariel Marcelo Pardo
- 151
- 1
- 1
- 2
3
votes
2 answers
Obviate the need to specify every folder for a manual setup
I run all my Emacs packages manually without any package manager. My setup is a simple init.el file with this kind of direction:
(add-to-list 'load-path "~/.emacs.d/packages/ace-window")
(add-to-list 'load-path "~/.emacs.d/packages/dired+")
…

Edman
- 1,167
- 7
- 13
3
votes
1 answer
How to list a newly formed emacs minor-mode?
With some help from the blog post found here, I have managed to write a small code for a test package (a minor mode) named niranjan. It is as follows.
(define-minor-mode niranjan-mode
"Hello world"
:lighter " niranjan"
:keymap (let ((map…

Niranjan
- 145
- 5
3
votes
1 answer
Help me install the development version of org-mode from Github repo
I want to install org-mode from Github repository and override that from ELPA.
My emacs configuration runs from an org-file, these are the lines relevant to package management and org-mode load path:
#+BEGIN_SRC emacs-lisp
(require 'package)
…

doctorate
- 1,789
- 16
- 39
3
votes
2 answers
Spacemacs - move org-mode customization to separate file
I have several hundred lines of customization code for org-mode in a private layer. In Spacemacs, customization code typically goes in a function called $LAYER/init-$PACKAGE or in my case, joe/post-init-org.
However, this adds three layers of…

Joe
- 1,312
- 1
- 8
- 19
3
votes
0 answers
Emacs Trunk: How to prevent creation of home directories in `load-path`
In the Emacs Trunk build -- i.e., built --with-ns, I have the following entries that get added automatically to my load-path when launching without any user configuration:
"." "./Applications" "./Applications (Parallels)" "./Desktop"…

lawlist
- 18,826
- 5
- 37
- 118
2
votes
0 answers
No such file or directory: dash
Since few days I am getting this error but I don't remember changing anything in my configuration. I have dash installed on my system. I was thinking then it needs dash Emacs package, but after installing it nothing has changed.
When I do evaluate…

siery
- 241
- 2
- 13
2
votes
1 answer
package-install doesn't pick up dependencies that are already in site-lisp
I have a bunch of software git-cloned into my site-lisp/ directory. It and all of its sub-directories are in my load-path. The problem I noticed is that package-install sometimes insists on pulling dependencies into elpa/ even when such packages…

zeRusski
- 335
- 1
- 8
2
votes
2 answers
how do I get Flymake to recognize files in my load-path?
when running Flymake against ~/.emacs, I see errors complaining about missing files like "powerline" and "company" - i.e. stuff contained in load-path. How can I configure Flymake's elisp backend to be aware of load-path? Nothing in the Flymake…

Dan O
- 151
- 7
2
votes
2 answers
How to debug inability to load library `auto-complete`
I am a new to Emacs , i downloaded auto-complete , moved it to ~/.emacs.d/plugins/ then modified the .emacs file to look like :
(add-to-list 'load-path (file-name-as-directory
(expand-file-name…

Eddy
- 21
- 1