Stack Exchange Network

Stack Exchange network consists of 175 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]

The tag has no usage guidance.

0
votes
1answer
42 views

Cannot open load file: Not a directory, notmuch [closed]

Does anyone see what's wrong in my attempt to run notmuch in emacs? My attempt to run notmuch helm-M-x notmuch: Cannot open load file: Not a directory, notmuch My .spacemacs (autoload 'notmuch "...
0
votes
1answer
64 views

Should I use “require” or “load” when writing my own configuration? [duplicate]

I am following this tutorial, and the author is doing something like this: ~/.emacs.d/init.el ;; add your modules path (add-to-list 'load-path "~/.emacs.d/custom/") ;; load your modules (require '...
1
vote
2answers
100 views

How to make all variables and functions of a mode visible without activating the mode

Let's say I want to customize a keybind for a mode that hasn't been loaded yet like so: (define-key eshell-mode-map (kbd "C-M-i") 'eshell-previous-input) But the problem is if I haven't yet loaded ...
1
vote
2answers
122 views

How to load an Idris file that depends on a package?

Working in Spacemacs (on Linux Mint, if that is relevant), using the Idris layer, one of my major mode commands is SPC m-r (Vim-style keybindings): idris-load-file. This causes Spacemacs to load up an ...
0
votes
0answers
51 views

How to reevaluate the code in an `eval-after-load`, after the library has been loaded?

I've defined the following : (eval-after-load 'clojure-mode '(font-lock-add-keywords 'clojure-mode `(("\\(#\\){" (0 (progn (compose-region (match-beginning 1) ...
1
vote
1answer
34 views

Make load-library's TAB completion to ignore backup files

Is it possible to make load-library's TAB completion to ignore backup files (.el~)?
1
vote
0answers
23 views

Value of `#$` when loading elisp files [duplicate]

What is the value of #$ when loading a file? package.el generates files like: ;;; anzu-autoloads.el --- automatically extracted autoloads ;; ;;; Code: (add-to-list 'load-path (directory-file-...
0
votes
1answer
54 views

In what order are Lisp files evaluated in this scenario?

Suppose I structure my Emacs (prelude) customizations like this guy: https://github.com/NicholasKirchner/prelude/tree/master/personal What is the load order of these files (for example)? gnus-init....
0
votes
1answer
45 views

Whats the correct structure and way to load libraries / packages?

I have create a quite large emacs package now its split over many files. currently i am running an org block with multiple load calls to load them, this is not idea for redistribution. How should I ...
1
vote
1answer
189 views

How do you recompile an .el source file and make it active in my current session

I have been writing some elisp code, current i have to open the file edit quit and reload emacs seems there must be a better way ? I know i can recompile the current file but that does not seem to ...
0
votes
0answers
88 views

How to get path to library installed through elpa

I have Emacs installed on multiple machines, and every time I install yasnippet through elpa. As it's version changes, it is being installed into different directories. For example: #first machine ~/....
1
vote
1answer
920 views

Loading and executing .el file if it exists on startup

I am having trouble telling Emacs to load and evaluate an additional .el file which only contains some lisp code to load an org file ;; keep my personal settings not in the .emacs file ;; http://www....
1
vote
2answers
119 views

Is it possible to lazy-load language mode packages?

Most of the packages I currently use are major modes for various languages that are only included in the off-chance I load a file of that type. Is there a way to postpone loading them at startup in ...
0
votes
0answers
344 views

lsp-rust: require + provide but still void-function

I am trying to use lsp-rust package. I installed it from melpa. After I run it I got message in *Messages*: Error loading autoloads: (void-function lsp-define-stdio-client) There are two packages: ...
2
votes
4answers
453 views

Command to Run (Eval) “Hello World” in ELISP on Eshell?

I am new to Emacs and ELISP A file (message "Hello World") saved as hello.el. Now, how to run (evaluate) this file on Eshell? ~/Documents $ ....... hello.el
5
votes
2answers
317 views

How do you reload a dynamic module?

If I have required a dynamic module in emacs, and then modify the source and rebuild it, how do I get emacs to reload the new module? I have not been able to just require it again. The only thing that ...
1
vote
3answers
310 views

use-package: load all defined packages

I use use-package to defer package loading. This is useful in emacs standalone mode. I additional run emacs in daemon mode (emacs --daemon), then this behavior is not desired. Is there a way to load ...
4
votes
2answers
352 views

How to re-load a package?

The situation I have is this. First, I run (require 'prolog) ...which loads the system's default version of prolog.el, and makes the variable prolog-mode-version available. It has value "1.22". ...