Henrik Lissner
4e2bd22869
Don't chmod +x scripts
...
This silent change is a bit too intrusive. It's convenient, but let the
user decide to use it, rather than force it on them.
2018-08-31 23:36:54 +02:00
Henrik Lissner
d80e79203a
Replace delete-trailing-whitespace with ws-butler
...
ws-butler only strips trailing spaces on lines that have been modified.
+ ws-butler is disabled if editorconfig enables
trim_trailing_whitespace, which resorts to delete-trailing-whitespace
instead.
+ Updates doom|(enable|disable)-delete-trailing-whitespace hooks to use
ws-butler-mode.
2018-08-31 13:59:12 +02:00
Henrik Lissner
2c5ccaa864
Update patch-macos documentation
...
Follows up on 0fc9b6be
2018-08-31 00:19:34 +02:00
Henrik Lissner
c1fa37245f
Fix dtrt-indent errors in broken smie modes
...
Some smie modes throw errors when trying to guess their indentation,
like `nim-mode'. This prevents them from leaving Emacs in a broken
state.
2018-08-30 22:39:03 +02:00
Henrik Lissner
edc9bf70af
Delete trailing whitespace, globally, by default
...
Also adds doom|disable-delete-trailing-whitespace hook, which can be
used to disable this behavior on a per-buffer basis. If you want to turn
off this global behavior:
(remove-hook 'write-file-functions #'delete-trailing-whitespace)
2018-08-30 20:36:15 +02:00
Henrik Lissner
2d21f1af6d
Fix comparison link for doom upgrade
...
The hashes were the wrong way around.
2018-08-30 13:36:21 +02:00
Henrik Lissner
25cc01ce41
Fix & refactor doom/open-vanilla-sandbox
...
It would fail to run the new instance because the arguments send to it
were incorrectly formatted.
2018-08-30 13:29:56 +02:00
Henrik Lissner
cc1b0f7ee6
Show comparison diff link on bin/doom upgrade
2018-08-30 00:42:34 +02:00
Henrik Lissner
0fc9b6be91
Improve patch-macos wrapper script
...
Reported to produce better results.
2018-08-29 23:01:59 +02:00
Henrik Lissner
902386b60f
Fix file-missing error during patch-macos
...
Forgot to add Emacs.app to the end of the directories to be searched!
Whoops!
2018-08-29 12:44:09 +02:00
Henrik Lissner
d6695d4cf3
Update doom/toggle-line-numbers #847
...
Now that display-line-numbers-mode has been backported to Emacs 25, we
can use it instead of interacting with nlinum directly.
2018-08-29 02:15:51 +02:00
Henrik Lissner
9ee1d8d0e2
Set indent function for dispatcher! macro
2018-08-28 19:14:18 +02:00
Henrik Lissner
ef6e09dac9
Search for Emacs.app in /usr/local/opt
...
And refactors doom-patch-macos function, its dispatcher, and its usage
in doom-quickstart.
2018-08-28 19:13:34 +02:00
Henrik Lissner
2b560a6a0e
General & minor refactoring
2018-08-28 13:36:44 +02:00
Henrik Lissner
6318572d10
Fix invalid marker in doom/window-enlargen #825
2018-08-27 20:07:17 +02:00
Henrik Lissner
d8fa5f39ad
Omit undefined/disable keybinds in which-key
...
This is for commands in disabled modules. This does not disable their
keybinds, but it stops them from showing up in which-key.
2018-08-26 16:38:35 +02:00
Henrik Lissner
d7e4901bda
Disable bottom-up root search if HOME is a project #833
2018-08-26 12:19:47 +02:00
Henrik Lissner
247b219ea1
doom-project-find-file: set default-directory too #833
...
Be extra sure!
2018-08-26 12:00:13 +02:00
Henrik Lissner
1a6ee8e0df
Fix doom-project-find-file if $HOME is a repo #833
...
If HOME is a repo, projectile resolves all project roots to HOME. This
fixes any commands that rely on this project resolution by explicitly
telling them what project they're in instead.
2018-08-26 11:47:04 +02:00
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