Questions tagged [autoload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
80 views

How to load personal prolog.el only if system's one is outdated?

I need to use a version of prolog.el not older than 1.25, so I defined the function maybe-reload-prolog-el: (defun maybe-reload-prolog-el () (when (version< prolog-mode-version "1.25") (add-...
10
votes
3answers
2k views

How to generate and activate autoloads for local packages?

It is clear that not all local/custom/personal packages should be officially released, and it would be silly to do so just to benefit from built-in package management support. I'm wondering how to ...
4
votes
3answers
305 views

How to know which function triggered an autoload of a library

How can I monitor when Emacs loads a library because of an autoloaded function, and also know the name of that function? EXAMPLE:  I type M-x eval-buffer in a buffer where one of the functions uses ...
5
votes
1answer
880 views

use-package :defer t and autoloads

My understanding is if that I use any of :commands, :bind, :bind*, :bind-keymap, :bind-keymap*, :mode, or :interpreter, then it will create a corresponding autoload and defer loading of the package ...
2
votes
1answer
233 views

Why isn't magit-version available?

I have Git 2.5.3 installed and am using GNU Emacs 24.4.1 on Ubuntu. I just installed Magit from MELPA: (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (...
3
votes
2answers
121 views

Why is cl-loop autoloaded on byte-compilation?

This question is motivated by a question about the "void function" error on cl-loop in the init file. The following test shows that (require 'cl-lib) is not needed for byte-compilation: Assume ...
1
vote
2answers
356 views

autoload of general.el not working in spacemacs?

I have this in my personal spacemacs layer's packages.el: (setq mylayer-packages '(general (mylayer :location local) evil-org )) Then later in the same file: (defun ...
0
votes
1answer
38 views

Autoloaded variable overrides the one from the init file

I added the following line to my init file to replace ruby-mode with enh-ruby-mode: (setq auto-mode-alist (mapcar (lambda (x) (if (eq (cdr x) 'ruby-mode) (cons (car ...
0
votes
1answer
470 views

autoload-do-load: Wrong type argument: consp, nil

I've encountered a problem after upgrading Emacs Speaks Statistics (ESS) from MELPA today to ess-20180926.54. When I try to start an R session under Emacs with M-x R I'm informed... autoload-do-load:...