[emacs-berlin] A doubt about use-package

jman emacs-berlin at storiepvtride.it
Tue Jan 12 21:58:55 UTC 2021


Hello folks,

freues neues Jahr :)

I have a question which I can't seem to solve by searching around.

I've found this snippet to configure mu4e (the email client inside
emacs) [0] so I copied some parts of it but they don't seem to
work. In fact, they do look wrong to me.

Just an example:

(use-package mu4e
  ...
  :custom
  (mu4e-attachment-dir "~/Downloads")
  ...

it just doesn't work for me, I need to instead move each command to the
`:init` to make it work:

(use-package mu4e
  ...
  :init
  (setq mu4e-attachment-dir "~/Downloads")
  ...

This applies for any variable in that code. I need to use `setq`,
otherwise it is not loaded. If I check the value with `C-h v` it doesn't
pick up my customization. If I check it with `M-x customize-variable`
emacs says that the variable is "CHANGED outside Customize" but I don't
see any effect.

I'm sure I'm missing something here so, It's driving me nuts :)

thanks for any hint!

ein lieben Grüß,

[0] https://github.com/adimit/config/blob/7aa03bda553ad3cbddc1976c431427f1586c0=
7b8/newmacs/main.org#mu4e


More information about the emacs-berlin mailing list