81 Commits

Author SHA1 Message Date
Jonas Bernoulli
4a499dcf56
Merge branch 'master' into layer/essentials 2024-08-24 20:58:54 +02:00
Jonas Bernoulli
296bdac8e2
use-package: Enable imenu support 2024-08-24 19:55:02 +02:00
Jonas Bernoulli
c825d11997
use-package: Use setopt 2024-08-24 19:55:00 +02:00
Jonas Bernoulli
152b9fbb46
emacsql: Use correct use-package keyword 2024-08-24 19:54:59 +02:00
Jonas Bernoulli
02bb4bea5a
Emacsg: Load compat as an early bird 2024-08-24 19:54:52 +02:00
Jonas Bernoulli
5042947585
Merge branch 'master' into layer/essentials 2023-05-22 20:30:07 +02:00
Jonas Bernoulli
1fdbd1aa7e
dash: Remove duplicated use-package form 2023-03-04 13:25:39 +01:00
Jonas Bernoulli
1dcae7eade
Merge branch 'master' into layer/essentials 2022-11-07 01:16:32 +01:00
Jonas Bernoulli
e011078197
recentf: Also exclude the x-variants of remote paths 2022-11-07 00:51:44 +01:00
Jonas Bernoulli
c7e4018494 dash: Cosmetics 2022-11-07 00:49:34 +01:00
Jonas Bernoulli
322ba3457e
Merge branch 'master' into layer/essentials 2022-06-10 20:36:15 +02:00
Jonas Bernoulli
b060aff59a
epkg: Use emacsql-sqlite-builtin or -module 2022-06-10 20:30:08 +02:00
Jonas Bernoulli
3c05a90859
Merge branch 'master' into layer/essentials 2022-06-10 20:11:27 +02:00
Jonas Bernoulli
d92e5255c1
Emacsg: Make sure use-package-verbose is always respected
Without this we the default value, nil, is in effect if init.el gets
recompiled during startup.
2022-06-10 19:57:14 +02:00
Jonas Bernoulli
75ba6b42ce Merge branch 'master' into layer/essentials 2021-09-08 17:51:10 +02:00
Jonas Bernoulli
c2bdcb337f Emacsg: init: Add "Tequila worms" section 2021-09-08 17:01:46 +02:00
Jonas Bernoulli
08cc1c716f Merge branch 'master' into layer/essentials 2021-01-27 12:58:14 +01:00
Jonas Bernoulli
0f9e8e769e Emacsg: Silence byte-compiler
Before this commit when running "touch init.el; emacs", then the
compilation triggered by `auto-compile-on-load-mode' resulted in:

  Warning (bytecomp): the following functions might not be defined at runtime:
      server-running-p, magit-add-section-hook
  Warning (bytecomp): the following functions are not known to be defined:
      indent-spaces-mode, indicate-buffer-boundaries-left

While "make build-init" only resulted in:

  init.el:193:1: Warning: the function ‘magit-add-section-hook’ might not be
      defined at runtime.

This commit addresses all of these warnings:

- Don't sharp quote functions, because they resulted in invalid
  warnings.

- Use the `use-package' keyword `:commands' to suppress the other
  warnings, because `:functions' fails to its job even though
  theoretically it is more suitable in these cases.
2021-01-27 12:22:40 +01:00
Jonas Bernoulli
70c1e2f11f Emacsg: Initialize borg at compile-time too
Without this `auto-compile-on-load-save' would file to re-compiling a
modified "init.el", which can be observed using "touch init.el; emacs".
2021-01-27 12:08:16 +01:00
Jonas Bernoulli
6e4701fdb0 Emacsg: Load essential libraries independently
Multiple packages require these libraries and we don't want to
attribute the time it takes to load these libraries to whatever
dependent package happens to be loaded first.

We don't do the same for `cl-lib' because `borg' itself requires,
which is done without `use-package', i.e. without timing how long
it takes.
2021-01-27 11:57:59 +01:00
Jonas Bernoulli
7cb4b86852 magit: Don't double down on default key bindings
This wasn't always the case, but now Magit
adds these key bindings out of the box.
2021-01-27 11:40:48 +01:00
Jonas Bernoulli
377b9065cb dash: Enable global-dash-fontify-mode
Instead of calling the obsolete `dash-enable-font-lock' function.
2021-01-27 11:36:10 +01:00
Jonas Bernoulli
1f9c66b495 Merge branch 'master' into layer/essentials 2020-09-08 12:44:11 +02:00
Jonas Bernoulli
a0540f27d9 tramp: Use remotes PATH
Add `tramp-own-remote-path' to the front of `tramp-remote-path',
so that the configuration on the host that we are connecting to
is used when we are connecting to it.  That may be a tautology
but it's not the default.

This matters especially when connecting to an "usual" system,
such as Guix, as has been discussed a few times, including here:
https://lists.gnu.org/archive/html/help-guix/2016-10/msg00041.html
https://lists.gnu.org/archive/html/help-guix/2017-06/msg00106.html
https://lists.gnu.org/archive/html/help-guix/2017-07/msg00003.html
2020-09-08 12:35:08 +02:00
Jonas Bernoulli
db474558f0 Merge branch 'master' into layer/essentials 2020-08-17 18:42:16 +02:00
Jonas Bernoulli
0fac0c05e5 Emacsg: Only disable scroll-bar-mode and tool-bar-mode if defined
The mode functions may not be defined when using an Emacs compiled
with "--without-x", in which case disabling these modes (1) isn't
necessary because they can't possibly be enabled and (2) trying to
call one of these undefined function would result in an error.

Closes #21.
2020-05-30 23:19:46 +02:00
Jonas Bernoulli
7683c30e34 Merge branch 'master' into layer/essentials 2020-05-22 16:00:11 +02:00
Jonas Bernoulli
a1c54210d1 Emacsg: init: Setup auto-compile in early-init.el
That way "init.el" can also benefit from `auto-compile-on-load-mode'
and `load-prefer-newer'.  "early-init.el" still cannot of course,
but we already don't compile that file (for this very reason).
2020-05-22 15:17:47 +02:00
Jonas Bernoulli
5e2e40574b smerge-mode: Do not extend smerge-redefine-changed
By default this face is not neither used nor has a visible effect.
It is used if it does `face-differs-from-default-p', in which case
it replaces `smerge-refined-removed' and `smerge-refined-added'.

Setting `:extend' makes the `face-differs-from-default-p', but it does
not make it *look* different from `default', so doing that effectively
hides the refinements.
2020-05-22 15:10:48 +02:00
Jonas Bernoulli
79fa297e8d Merge branch 'master' into layer/essentials 2020-03-20 23:56:22 +01:00
Jonas Bernoulli
b0178cc65c tramp: Disable vc
Tramp's FAQ suggests this in order to speed things up.
2020-03-20 23:43:24 +01:00
Jonas Bernoulli
7c194efc8a smerge-mode: Continue to extend faces to edge of window
Due to a breaking change we have to request this explicitly in
Emacs 27.  Earlier Emacs versions do the right thing by default.
2020-03-20 23:42:44 +01:00
Jonas Bernoulli
b0e7499009 diff-mode: Continue to extend faces to edge of window
Due to a breaking change we have to request this explicitly in
Emacs 27.  Earlier Emacs versions do the right thing by default.

See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37774.
2020-03-20 23:42:39 +01:00
Jonas Bernoulli
cd0a0224c1 Emacsg: init: Add early-init.el 2020-03-20 23:37:24 +01:00
Jonas Bernoulli
b3312638dd Merge branch 'master' into layer/essentials 2019-04-19 21:33:44 +02:00
Jonas Bernoulli
c4d9338571 magit: Adjust key binding for use of Transient 2019-02-17 01:11:09 +01:00
Jonas Bernoulli
4dba803b53 Merge branch 'master' into layer/essentials 2018-12-27 13:35:51 +01:00
Jonas Bernoulli
1de7198d71 auto-compile: No longer inhibit when HEAD is detached 2018-12-27 12:47:34 +01:00
Jonas Bernoulli
887b78a8b8 Merge branch 'master' into layer/essentials 2018-06-23 22:48:37 -05:00
Jonas Bernoulli
ba5ffda542 Revert "Emacsg: init: Silence bogus warnings on newer Emacsen"
This reverts commit 17f4770a18e8d93d0e6773193d421cb595dae29a.
2018-06-23 16:32:05 -05:00
Jonas Bernoulli
a5ebd3cdd3 Merge branch 'master' into layer/essentials 2018-03-02 22:34:10 +01:00
Jonas Bernoulli
5420d5312f custom: Do not require
This prevents `custom.el' from being loaded again when compiling
`init.el'.  Preventing that is necessary because the use face would
otherwise be reloaded, which would undo all changes to faces that
were done using `set-face-attribute' or similar.
2018-02-09 20:51:17 +01:00
Jonas Bernoulli
b66048fc4e Merge branch 'master' into layer/essentials 2018-01-29 11:18:12 +01:00
Jonas Bernoulli
308b112d18 save-place: don't enable save-place-mode on Emacs 24 2018-01-17 17:39:03 +01:00
Jonas Bernoulli
8248513177 eldoc: don't enable global-eldoc-mode on Emacs 24 2018-01-17 17:37:47 +01:00
Jonas Bernoulli
a4fa95b9a1 Merge branch 'master' into layer/essentials 2017-12-21 03:23:44 +01:00
Jonas Bernoulli
17f4770a18 Emacsg: init: Silence bogus warnings on newer Emacsen
I mean, what am I supposed to do here?  26.1 doesn't
want to use `if-let' and 25.3 doesn't have `if-let*'.
2017-12-21 03:15:00 +01:00
Jonas Bernoulli
a2973a87e1 Emacsg: init: Suppress package.el more reliably 2017-12-21 03:14:00 +01:00
Jonas Bernoulli
faf0b79a20 Merge branch 'master' into layer/essentials 2017-11-27 12:46:46 +01:00
Jonas Bernoulli
8cf374b249 magit: add new magit-insert-modules to magit-status-sections-hook
Instead of adding various `magit-insert-modules-*' functions directly.
2017-11-27 12:29:56 +01:00