Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [load-path]

The tag has no usage guidance.

0
votes
0answers
27 views

Cannot add directory names ending in .el with normal-top-level-add-subdirs-to-load-path

C-hfnormal-top-level-add-subdirs-to-load-pathRET gives: (normal-top-level-add-subdirs-to-load-path) Recursively add all subdirectories of ‘default-directory’ to ‘load-path’. More precisely, ...
0
votes
0answers
129 views

Not able to load a color theme from 'init.el' or using 'M-x color-theme-select'

I am trying to get emacs(emacs24) to load with another colortheme (looking to have a 'dark' theme). In my init.el file I have the lines: (eval-after-load "color-theme" '(progn (color-theme-...
18
votes
2answers
2k views

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 ...
1
vote
1answer
139 views

Loading ~/.emacs: cannot open load file, php-mode

GNU Emacs 24.5.1, installed MELPA, installed php-mode. The directory ~/.emacs.d/elpa/php-mode-20180105.541/ exists. I added the following lines to .emacs: (add-to-list 'load-path "~/.emacs.d/elpa") (...
1
vote
1answer
141 views

`load-path`, `exec-path`

For some reason certain executables are not being found when I add them to the load patch but others are, while n the same directory. For example I got clang-format under usr/local/bin and I have (...
2
votes
1answer
388 views

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 ...
1
vote
2answers
194 views

Does `load` prefer .elc files over .el files?

Do .elc files take precedence over .el files when using load? Say I have two files in my load path: foo.el and foo.elc. If I call (load "foo"), will the byte-compiled version (foo.elc) always be ...
4
votes
1answer
441 views

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: ...
1
vote
1answer
121 views

How to load libraries (Lisp files), wherever they are located

I've been learning how to use modules using the cider-mode source code but I've run into a very basic issue. The contents of my files are main.el (require 'main-module) (main-module-message) ...
0
votes
1answer
225 views

Missing function in CEDET?

I get this error message when trying to configure CEDET: Symbol's function definition is void: ´cedet-gnu-global-version-check´ This is my elisp code: (require 'auto-complete) ; start auto-...
1
vote
0answers
260 views

How to tell if a emacs library is loaded?

Is there a function that will tell me for a given library foo if (require 'foo) has previously happened?
1
vote
1answer
335 views

Flycheck variable warnings despite flycheck load-path

I'm trying to get Flycheck to load files containing declarations to resolve warnings to free variables etc. But Flycheck is not picking up the (required files. I use (require 'my-dcls) at the top of ...
3
votes
2answers
879 views

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-...
1
vote
1answer
182 views

Emacs doesn't search inside elpa directory while loading

OS: Windows XP, Emacs: 24.5.1. I installed bookmark+ package using Melpa. It was put into directory: ~/.emacs.d/elpa/bookmark+-20151107.847 When I put (require 'bookmark+) to the end of ~/.emacs, I ...
1
vote
2answers
105 views

Confusion with require

I started a new question on this topic yesterday, and deleted it because I thought I had it solved. No, I'm still confused about exactly how require works. In my situation I have a file calctest.el in ...
0
votes
1answer
67 views

Trouble understanding load/load-path relationship

I'm working on a small function to recursively load my Emacs customizations. In writing it, I noticed the argument of load, MUST-SUFFIX, requires the FILE argument to not include a directory name to ...
0
votes
1answer
63 views

How to load json.el included in emacs instead of fallback lib included in gnus

I want to use the json.el included in 24.5, but cannot do that, because gnus includes an older version of json.el that is loaded before the one from 24.5. When running list-load-path-shadows I got ...
3
votes
2answers
11k views

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 ...
3
votes
0answers
74 views

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" "./...
3
votes
1answer
1k views

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"...
5
votes
1answer
3k views

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 ...
3
votes
1answer
369 views

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....
1
vote
1answer
275 views

Problem with nil element in load-path in Emacs 24.4

I just installed Emacs 24.4 from source (on Ubuntu 14.04). I now get the following error when running Emacs: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match("/[._]emacs\...
2
votes
1answer
84 views

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 ...
2
votes
2answers
285 views

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 (...