Skip to main content

Questions tagged [use-package]

use-package is a macro package to isolate Emacs configuration lines in the init file. By isolating related lines, the configuration performs better and is easier to maintain.

Filter by
Sorted by
Tagged with
16 votes
2 answers
5k views

Using package.el to install and update but use-package for loading and configuring

After recently learning about use-package I decided to port my configuration to it but found myself reluctant to give up the convenience of using package.el to install packages and keep them updated. ...
Omar's user avatar
  • 4,852
10 votes
1 answer
4k views

How to use use-package with built-in packages?

For the sake of tidiness, I'd like to group setq(s) under single, related banner. Let's say I want to set the value of compilation-scroll-output in "compilation" unit like this: (use-package ...
jacekmigacz's user avatar
6 votes
2 answers
2k views

What is the standard way to install an elisp package?

I'm interested in trying out the features of the htmlize.el package that I read about here. The article does not explain how I can import it into emacs. What is the best way to do this?
Brian Fitzpatrick's user avatar
10 votes
4 answers
3k views

How to bind your keys to keymaps that aren't loaded yet?

I use use-package to manage installed packages and bind-key to assign actions to custom keys that I like. I override most of the default Emacs keybinding (e.g. C-n becomes M-k, C-p becomes M-i), but ...
Mirzhan Irkegulov's user avatar
3 votes
1 answer
214 views

Install packages automatically [duplicate]

I'm new to Emacs, and I'm storing my Emacs configuration in a GitHub repo. Whenever I move to a new computer, I want Emacs to install all packages I specify if they do not present on this computer. ...
Hot.PxL's user avatar
  • 203
26 votes
2 answers
10k views

Difference between init and config in use-package

I have a configuration like this: (use-package html-mode :mode "\\.html\\'" :config (progn (add-hook 'html-mode-hook 'turn-off-auto-fill))) Now when I go and visit an HTML file, I observe ...
Sibi's user avatar
  • 3,813
2 votes
2 answers
923 views

Conditional ensure in use-package

Basically, I want to ensure that the elfeed package is available and load it with use-package, but only on one computer, so I wrote something like this: (unless (string= system-name "here-elfeed-...
marwy's user avatar
  • 121
10 votes
3 answers
4k views

How can I defer loading elpy using use-package?

I've been updating all my use-package calls now that :idle is no longer a decent way to defer stuff. At the moment one of the biggest hits on my load time is elpy which loads a whole bunch of ...
stsquad's user avatar
  • 4,681
3 votes
1 answer
345 views

Use normal delete-region with backspace in markdown-mode

I would like to use the "normal" behaviour for <backspace> in markdown-mode. That is, instead of calling markdown-exdent-or-delete, I would like to call cua-delete-region. So I tried this ...
NVaughan's user avatar
  • 1,481
3 votes
1 answer
1k views

Could not load package flyspell with use-package

I have configured flyspell mode with use-package like this: (use-package flyspell-mode :init (progn (flyspell-mode 1)) :config (progn (setq ispell-program-name "aspell") (setq ...
Sibi's user avatar
  • 3,813
6 votes
2 answers
2k views

Managing packages using use-package

I have read that using use-package, one can manage installation of the packages from the init.el file. Is there any specific command for that ? Background: I'm planning to port my existing init.el to ...
Sibi's user avatar
  • 3,813
3 votes
2 answers
2k views

Interaction between package, use-package, and quelpa

I am testing quelpa with my use-package configuration. My question is: Is quelpa meant to complement use-package, or rather to replace it? I have the following code in my init file: (require '...
NVaughan's user avatar
  • 1,481
11 votes
3 answers
5k views

org-plus-contrib and org with `require` or `use-package`

How can I ensure I'm downloading and using org-plus-contrib from the org-mode repository using require or use-package? Package.el downloads the package, compiles everything and then says it can't load ...
wdkrnls's user avatar
  • 3,767
8 votes
3 answers
739 views

How do I edebug a function defined in a use-package block?

Here is a minimum working example to demonstrate the problem, you will need to have the use-package package installed: (use-package ido :config (progn (defun dummy/function () (...
Kaushal Modi's user avatar
3 votes
1 answer
2k views

use-package syntax: how to set-face-attribute?

I'm trying to set helm using use-package. The set-face-atttribute doesn't work within use-package: (use-package helm-config :config (progn (helm-mode 1) ;; other config ......
Nick's user avatar
  • 4,563
3 votes
2 answers
944 views

Is it possible to figure out which package/script takes most of the startup time?

I used to run Emacs on Linux using Emacsclient, it is really easy and great experience: emacs --daemon emacsclient When I work on a Windows machine, Emacs starts very slow. It seems there's no ...
Nick's user avatar
  • 4,563
9 votes
2 answers
1k views

Bind f-key in use-package

How can I bind an f-key using jwiegley's use-package package? Any of these combinations produces an error: :bind ("f11" . multi-term) :bind (<f11> . multi-term) :bind ([f11] . multi-term) (...
NVaughan's user avatar
  • 1,481
2 votes
0 answers
1k views

Stop Yasnippet from autoloading

Is there a way to stop Yasnippet from autoloading? I installed it from melpa (v.20141102.1554), and have no reference to it in my init files. However, keeps up autoloading whenever I run emacs. I only ...
NVaughan's user avatar
  • 1,481
2 votes
1 answer
2k views

void-function when loading ido-mode in Emacs24

I'm using Emacs 24.4.1 from Debian unstable and have added the lines from question "How do I switch buffers quickly?". However this results in an error message and I found no way to resolve it. I can ...
Jens Kubieziel's user avatar

1 2 3 4 5
6