Questions tagged [load]

45 questions
7
votes
2 answers

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 works so far is to give the module a new…
John Kitchin
  • 11,555
  • 1
  • 19
  • 41
6
votes
1 answer

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 make my changes active with in emacs until i restart…
Oly
  • 583
  • 1
  • 5
  • 15
6
votes
3 answers

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 all, in my init files defined, packages? In a way…
jue
  • 4,476
  • 8
  • 20
4
votes
0 answers

reload emacs package in current session after .el source recompilation

I have an emacs package installed from elpa in my ${HOME}/.emacs.d/elpa/ directory, and I am trying to fiddle with its .el source file. I would like to recompile after modification have those changes take effect in the current emacs session,…
grobber
  • 141
  • 2
4
votes
1 answer

Should I use "require" or "load" when writing my own configuration?

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 'setup-foo) (require…
nalzok
  • 665
  • 6
  • 18
4
votes
2 answers

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". Now, I know that my personal copy of this package,…
kjo
  • 3,145
  • 14
  • 42
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

emacs-custom file get overwritten

In my init.el, I have the following line (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) which is supposed to set the file custom.el into .emacs.d config folder for getting all customization tidy. Over the years, emacs…
PinkCollins
  • 151
  • 8
3
votes
2 answers

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 eshell I get this error: Debugger entered--Lisp…
John DeBord
  • 550
  • 3
  • 13
3
votes
2 answers

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 Idris REPL instance and use it to type check the…
Keith Pinson
  • 269
  • 1
  • 3
  • 25
3
votes
1 answer

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.mygooglest.com/fni/dot-emacs.html ;; load it if it…
Uwe Ziegenhagen
  • 176
  • 3
  • 8
2
votes
1 answer

Function load raises error on loading an existing file

I started getting an error on loading theme files and tracked it down to the (load) function being called by (load-theme). I tried to isolate the problem with the following test function and am still puzzled: (defun test-load () (let ((file…
Daniel Doherty
  • 418
  • 4
  • 12
2
votes
1 answer

SICSTus Emacs Interface - Installation

I am currently trying to install the SICSTus Emacs Interface on Ubuntu to use Emacs to program in Prolog, but it seems that I am too stupid to do…
2
votes
1 answer

Is it possible to see if a library is loaded after another one?

I am trying to find out if a library has been loaded after another one. For example has the ox-bibtex library been loaded after the org-ref library. I know you can look at fboundp, featurep, but I need to know the order of loading. I thought I coudl…
John Kitchin
  • 11,555
  • 1
  • 19
  • 41
2
votes
4 answers

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
Tom
  • 29
  • 2
1
2 3