Henrik Lissner
300181aba3
Move custom hooks in core.el closer to top
...
Conform to the Doom/lisp convention of defining customizable elements
close to the top of files.
2018-08-26 00:20:18 +02:00
Henrik Lissner
469aa81570
Forward-require dependencies in tests
...
Easier to see at a glance what the test's dependencies are.
2018-08-26 00:20:16 +02:00
Henrik Lissner
631c4004ba
Load custom-file only once & after user's config
...
This change facilitates the users that prefer their custom-file
somewhere other than doom-local-dir (e.g. in ~/.doom.d/custom.el).
This change prevents loading both files during startup. Just change
`custom-file` and Doom will load it after your config.el is loaded (but
before doom-post-init-hook runs).
2018-08-25 19:45:23 +02:00
Henrik Lissner
7510f5abf0
bin/quickstart: fix wrong-number-of-args error
2018-08-25 12:02:19 +02:00
Henrik Lissner
8e092b9884
Refactor doom-quit-p
2018-08-25 04:01:35 +02:00
Henrik Lissner
33b0a8d36c
bin/doom quickstart: Offer to patch Emacs.app
2018-08-25 03:40:00 +02:00
Henrik Lissner
77838534ce
Polyfill line-number-display-width for Emacs 25
...
Fixes void-function line-number-display-width errors (used in
company-pseudo-tooltip-frontend).
2018-08-25 03:16:32 +02:00
Henrik Lissner
08c09c2898
bin/doom patch-macos: show "Patching X" message
2018-08-24 01:12:05 +02:00
Henrik Lissner
c5f3cc17c5
Fix doom quickstart not respecting -y/--yes #817
2018-08-23 17:31:21 +02:00
Henrik Lissner
9eae0860c6
Fix doom/window-enlargen in popup windows #825
2018-08-23 17:21:42 +02:00
Henrik Lissner
fa81f7ed71
Improve doom patch-macos documentation
...
Makes doom help patch-macos more informative, and simplifies
confirmation prompt when using it.
2018-08-23 16:49:03 +02:00
Henrik Lissner
1890356d11
Refactor & fix vanilla sandbox in tty Emacs
...
Except for Windows users. Doesn't seem to be possible to suspend and
foreground Emacs in windows' shell.
2018-08-23 16:18:56 +02:00
Henrik Lissner
12f6add329
package-initialize for doom/open-vanilla-sandbox
2018-08-23 11:27:27 +02:00
Henrik Lissner
9e08620350
Use locate-library to detect display-line-numbers
...
Now that display-line-numbers is polyfilled, a boundp check is useless.
2018-08-21 04:32:27 +02:00
Henrik Lissner
62977247c9
Revert da7f9019
& refactor doom init hooks
2018-08-21 04:27:14 +02:00
Henrik Lissner
9a4cce8d9a
Refactor detection of native display-line-numbers
2018-08-21 04:10:18 +02:00
Henrik Lissner
da7f9019d1
Run doom-post-init-hook as late as possible
...
Possibly fixes recursive load errors, to do with
kill-buffer-query-functions and buffer-predicate autoloads loading in a
weird way on Emacs 25 (and especially on MacOS, for some reason).
2018-08-21 04:03:05 +02:00
Henrik Lissner
ee73d6c9af
Minor reformatting & comment tweaks
2018-08-21 03:34:39 +02:00
Henrik Lissner
a7da9a4738
💥 Rewrite line numbers system for Emacs 25
...
This removes the various doom-line-number* variables and replaces it
with the Emacs 26 display-line-numbers API, which I've ported to Emacs
25.x (however, it uses nlinum under the hood, and not all of
display-line-numbers options are supported).
2018-08-21 03:34:39 +02:00
Henrik Lissner
24cddafc8a
Update tests
2018-08-21 03:34:39 +02:00
Henrik Lissner
4618b7afad
Refactor & reformat core-ui
2018-08-21 02:56:54 +02:00
Henrik Lissner
6b7f97f4fc
Autoload doom-quit-p & revise its docstring
2018-08-20 23:56:56 +02:00
Henrik Lissner
f9b06bd3a8
bin/doom: fix Emacs.app patch wrapper script
2018-08-19 03:59:23 +02:00
Henrik Lissner
2be0772b13
bin/doom: add patch-macos command
...
Patches Emacs.app to respect your shell environment.
2018-08-19 03:44:42 +02:00
Henrik Lissner
1d3a1ee82f
highlight-numbers-mode -> highlight-numbers #813
...
Correct package name
2018-08-17 13:03:59 +02:00
Henrik Lissner
f923ed4341
Add docstrings to doom-inhibit-switch-*-hooks vars
2018-08-17 04:34:43 +02:00
Henrik Lissner
1dca969a14
Update switch hook tests
2018-08-17 04:03:19 +02:00
Henrik Lissner
deea5f11b3
Fix enter/exit window/buffer hook names
2018-08-17 04:01:46 +02:00
Henrik Lissner
7a578eb242
Move counsel+helpful integration to ivy module
2018-08-17 03:37:07 +02:00
Henrik Lissner
4a4b012b5d
Move custom hooks to core/core.el
...
Also ensures that the custom hooks aren't fired until as late as
possible, which prevents a few packages from prematurely loading at
startup. Faster startup! Yay!
2018-08-17 01:57:09 +02:00
Henrik Lissner
6df179bb29
Use def-package! for highlight-numbers-mode
...
Easier for users to disable
2018-08-16 19:34:03 +02:00
Henrik Lissner
ce9f03f310
Use personal fork of highlight-escape-sequences
...
Improves elisp support, adds support for more modes and fixes some minor
issues.
2018-08-16 15:17:07 +02:00
Henrik Lissner
a715f848aa
Let EMACS_SERVER_NAME envvar change server-name
2018-08-16 12:53:38 +02:00
Henrik Lissner
480378d30c
Fix doom/info in noninteractive sessions
2018-08-16 01:26:28 +02:00
Henrik Lissner
4c18fc81af
Ensure switch hooks don't reference dead buffers
2018-08-13 21:47:56 +02:00
Henrik Lissner
5714ff423a
Fix evil jumplist after jumping to ag match
...
helm-ag would formerly add multiple entries to the jump list. It now
only adds one, and recenters the window when jumping to an ag match.
2018-08-13 21:47:55 +02:00
Henrik Lissner
b149dcffd4
Replace esup with doom/profile-emacs #788
...
Since esup (called directly) doesn't work with Doom.
2018-08-13 03:50:17 +02:00
Henrik Lissner
25d9786edf
Add early-init-file support to doom/profile-emacs #788
...
And fix wrong-type-argument: stringp errors when running esup.
Also ensure that doom|run-all-startup-hooks sets after-init-time.
2018-08-13 03:47:33 +02:00
Henrik Lissner
cbad18bf95
Fix wrong-type-arg hash-table-p error
...
In the rare case your private init.el has no doom! block.
2018-08-12 02:46:06 +02:00
Henrik Lissner
36044fccc9
defconst -> defvar for global constants
...
So they can be changed prior to being defined (e.g. for
doom/open-vanilla-sandbox).
2018-08-12 02:45:28 +02:00
Henrik Lissner
c530866f0a
Add option to load doom in vanilla sandbox
...
This adds the option to run elisp in an environment where doom core &
modules are loaded, but not your private modules or config.
Also updates the vanilla sandbox text template.
2018-08-12 02:45:01 +02:00
Henrik Lissner
9ddfca44d1
Rename doom//reload-project -> doom/reload-project
...
Conform command to new naming convention (removed the doom//abc
convention).
2018-08-11 21:45:53 +02:00
Henrik Lissner
735e14270e
Fix non-string errors from kill-ring
...
When unpropertizing the kill ring.
2018-08-11 02:05:33 +02:00
Henrik Lissner
43e0314e86
Add doom/switch-theme; a more sensible load-theme
...
load-theme doesn't disable previously enabled themes before switching.
doom/switch-theme does.
This remaps any keys bound to load-theme to doom/switch-theme.
2018-08-11 01:59:37 +02:00
Henrik Lissner
e290c6e03b
Minor refactor of associate!'s initializer
2018-08-11 01:59:37 +02:00
Henrik Lissner
e348e32cbc
Fix def-project-mode! :add-hooks overwriting hooks
...
Would overwrite hooks previously added to the project mode.
2018-08-11 01:59:36 +02:00
Henrik Lissner
d6f89aaafd
Make doom/copy-backtrace copy the whole backtrace
2018-08-10 19:13:31 +02:00
Henrik Lissner
541ce81b91
Fix #791 : replace global-command-log-mode
...
global-command-log-mode isn't autoloaded, but
clm/toggle-command-log-buffer is, and if command-log-mode-is-global is
set, it is equivalent to global-command-log-mode.
2018-08-08 23:37:30 +02:00
Henrik Lissner
6eafdd7c62
Refactor module load process
...
doom! no longer loads modules, it only sets
doom-modules (incrementally).
Instead, modules are loaded by doom-initialize-modules (which makes more
sense).
2018-08-08 23:37:30 +02:00
Henrik Lissner
f88a97177c
Rename doom-ensure-core-directories
...
Give it a more descriptive name
2018-08-08 23:37:30 +02:00