Skip to main content
29 votes
Accepted

What does (require 'package) mean for emacs and how does it differ from load-file?

If you load a library repeatedly, that file will be read and its code evaluated repeatedly (each and every time you load it). If you require a library repeatedly, it will load the library once (at ...
phils's user avatar
  • 51.8k
11 votes
Accepted

Easiest way to install Emacs Windows support libraries

Beginning with Emacs 25, the Emacs Windows download directory now includes a deps package that includes all the dependencies for a particular architecture. For example, for x86_64, use emacs-25-x86_64-...
Michael Hoffman's user avatar
7 votes
Accepted

How to re-load a package?

You can unload the system prolog mode first, this unbinds all its variables, so that the new defvar init-forms will take effect: (require 'prolog) (when (version< prolog-mode-version "1.25") (...
npostavs's user avatar
  • 9,223
4 votes

Easiest way to install Emacs Windows support libraries

I know this is an old question, but for if someone stumbles upon this: Try emacsbinw64 or emacsbin. They contain all required dlls and you don't have to resolve dependencies manually.
itmuckel's user avatar
  • 267
3 votes

How to re-load a package?

As an alternative to unload-feature, you could use this to check the version of the default package without actually loading the code: (let ((version (with-temp-buffer (insert-file (...
Tyler's user avatar
  • 22.4k
3 votes

Unload a whole package or library tree

There's no built-in way to do this--see Unloading in the Elisp manual. unload-feature takes a force argument that allows forcibly unloading P even if other packages depend on P; is that sufficient ...
Tianxiang Xiong's user avatar
2 votes
Accepted

(require 'flx-ido) fails, but "M-x flx-ido-mode" succeeds

Emacs initializes the package system after loading .emacs, not before. (See Startup Summary and Packaging Basisc.) I think the reason is to allow you to configure (or even disable) the package loading ...
Gilles 'SO- stop being evil''s user avatar
2 votes
Accepted

Multiple files for reading abbreviations?

An abbrev file contains regular Lisp code and is evaluated using load. Therefore all you need to do is to add (load B) (with B being the full path to file B) to your init file wherever appropriate.
wasamasa's user avatar
  • 22.2k
2 votes
Accepted

Doom Emacs -- Use a library

Add (require 'org-inlinetask) to your init.el file.
John Kitchin's user avatar
  • 11.9k
2 votes
Accepted

Source of "Pattern t is deprecated. Use `_' instead" message

pcase (part of cl-lib) generates this message when usage conforms to: (pcase ... ... (t ...) ) To address the message, replace t with _ (which is special to pcase). (pcase ... ... (_ ....
outis's user avatar
  • 208
2 votes

Ubuntu 27.1 install needs X libraries

As @rpluim comments: apt build-dep emacs should get you quite a way there. It will probably be missing some things which are both desirable and new for 27.1 however, such as libjansson-dev. I'm not ...
phils's user avatar
  • 51.8k
2 votes
Accepted

Does it exists any library and or functionality that provides an API for indenting major modes?

The main part of indenting is the parsing. There is the Simple Minded Indentation Engine for this kind of stuff. The manual also gives an example for the indentation rules. octave-mode in octave.el ...
Tobias's user avatar
  • 33.4k
1 vote
Accepted

libMagickWand-6.Q16.so.2 . . . No such file or directory

Success. Apparently, it does take a recompile/install, albeit with a ./configure CFLAGS=-no-pie to start with. Not sure why. I installed/reinstalled everything libMagickWand-ish Synaptic had to offer ...
147pm's user avatar
  • 2,979
1 vote

emacs interface to ubuntu package management (apt, dpkg)

A search for "emacs apt wrapper" revealed https://github.com/xwl/ga, "generic apt(from Debian GNU/Linux) like wrapper over various package management tools". Another result was https://www.emacswiki....
Brian Malehorn's user avatar
1 vote

How to use function update-file-autoloads and and variable generated-autoload-file?

I am trying to get the local variables aspect of update-file-autoloads working, but have encountered difficulties. In particular, I have the following results. Here is my local variables declaration ...
Kevin's user avatar
  • 1,328

Only top scored, non community-wiki answers of a minimum length are eligible