Commit Graph

2322 Commits

Author SHA1 Message Date
d04a1fa940 Remove doom-module-pairs 2018-02-16 04:47:02 -05:00
f864931643 Fix gibberish (char codes) in load-path 2018-02-16 03:11:28 -05:00
d2436650a3 Move server+benchmark code into doom|finalize 2018-02-16 02:11:41 -05:00
2b1c323dbf 💥 Redesign private sub-module system
~/.doom.d/modules is now a full module tree, like ~/.emacs.d/modules.
Symlinks are no longer involved.

Private modules can now shadow Doom modules. e.g.
~/.doom.d/modules/lang/org will take precendence over
~/.emacs.d/modules/lang/org.

Also, made doom--*-load-path variables public (e.g. doom--site-load-path
=> doom-site-load-path), and rearranged the load-path for a 10-15%
startup boost.
2018-02-16 02:11:10 -05:00
0e6540fb8f Fix featurep! in private submodules
You'll have to use the full form to use featurep! in the private module
root, but now the short form will work in the nested submodules.
2018-02-15 03:36:32 -05:00
b3dcba54eb Add config/private; for ~/.doom.d & ~/.config/doom support #406
A modules/ submodule will be symlinked to ~/.emacs.d/modules/private.
2018-02-14 23:36:35 -05:00
dfefbd0176 Fix make test not resetting doom-modules properly 2018-02-14 21:18:56 -05:00
4321f20b3e Appease byte-compiler-sama 2018-02-14 20:54:53 -05:00
ae52b2ff60 Fix empty load-file-name in warn! macro during byte-compilation 2018-02-14 20:52:25 -05:00
0f404a513a Fix overaggressive backspace
delete-backward-char would kill adjacent delimited regions:

1. |
   (...)
2. (|...)
2018-02-14 16:46:01 -05:00
57adae5ec6 Introduce more opinionated backspace/del/newline behavior
+ Instead of remapping delete-backward-char to doom/delete-backward-char
  (which was unreliable, depending on the mode), it is now overridden
  with it, without sacrificing its original functionality. The new
  behavior is as follows:
  + Fall back to sp-backward-delete-char when it makes sense to delete
    the adjacent pair: {|} => |
  + Collapse an indented pair block, if at bolp in between: {
      |
    } => {|}
  + Refresh a pair's :post-handlers when deleting into pair: {
      |
    } => {|} => {
      |
    } (can be repeated)
  + When cursor is preceded by whitespace, delete in increments of
    tab-width.
+ newline-and-indent has been advised to:
  + Only newline when in a string.
  + Continue comment lines consistently (needs more testing!)
  + Falls back to basic newline-and-indent, without affecting whitespace
    in the origin line (it would originally delete-horizontal-space
    before creating a new line).
+ Incorporates a set of reasonable defaults for brace expansion on RET
  or SPC, as mentioned in #343 and #413.

Affects #343, #413
2018-02-14 05:42:51 -05:00
11373e0128 Move doom-ansi-apply away from macros + add docstring 2018-02-14 05:40:37 -05:00
5e5d075431 New doom/*-this-file commands; move doom/sudo* to new files library 2018-02-14 05:40:37 -05:00
f6039eaee3 Use delay-warning instead of message in warn! macro 2018-02-14 03:17:51 -05:00
11e5140b98 Fix editorconfig file ext 'guesser' in org-edit-src buffers
Fixes editorconfig not correctly guessing style settings in org-edit-src
buffers.
2018-02-13 19:42:39 -05:00
a05c4cca6c Fix kill-this-buffer asking to save twice 2018-02-13 17:53:11 -05:00
cb3e780a96 Fix package manager not detecting outdated quelpa packages 2018-02-13 05:23:40 -05:00
ba19032d29 Rename doom/narrow-buffer => doom/clone-and-narrow-buffer 2018-02-12 01:44:02 -05:00
57b2b5c546 Fix doom//packages-update not updating dependencies 2018-02-11 16:13:15 -05:00
4566dea4b3 Fix save-buffer prompt occurring after buffer is buried 2018-02-11 03:58:57 -05:00
0019deb276 Rewrite doom/info 2018-02-10 17:27:02 -05:00
139a0c8045 Fix kill-buffer arguments. 2018-02-10 19:36:06 +03:00
3355378480 Fix doom//reload-load-path infinite recursion with daemon emacs 2018-02-08 02:15:41 -05:00
dce496e246 Change doom-project-p to return a boolean 2018-02-06 17:30:38 -05:00
f28a89f701 Add doom-project-name function 2018-02-06 17:30:16 -05:00
508dbf7a5c Revise docstrings for doom-project-{root,p} 2018-02-06 17:30:03 -05:00
7e87ab3e29 New warn! macro; replace debug! with log! macro 2018-02-04 17:53:31 -05:00
7d9f2e5078 New doom/toggle-debug-mode command 2018-02-04 17:53:05 -05:00
68e735938b core-keybinds: remove redundant quotes 2018-02-04 17:29:03 -05:00
414383e5f4 Remove vestigial references to doom/{next,previous}-buffer 2018-02-04 05:05:40 -05:00
245ef02597 Fix misplaced info in doom/info output
And update its docstring
2018-02-04 01:39:50 -05:00
4262b9912c Revert "Move init.test.el into core/autoload/test.el"
This reverts commit 3bfb7fa17d.
2018-02-03 22:46:18 -05:00
e2a6028643 Add docstring to doom/toggle-profiler 2018-02-03 22:41:34 -05:00
c5837440d6 Refactor kill-this-buffer advice
And prevent it from switching to fallback buffer too early. Again.
2018-02-03 22:36:48 -05:00
ee24aba034 Fix whitespace inconsistencies in doom/info 2018-02-03 22:35:40 -05:00
3830a8aba1 feature/workspaces: fix infinite recursion in buffer-predicate #399
By refactoring so that the middle-man buffer predicate wasn't necessary.
2018-02-03 18:06:47 -05:00
76a1e8a279 Fix theme/font init in daemon Emacs
Possibly addresses #399 and #400
2018-02-03 17:58:10 -05:00
3bfb7fa17d Move init.test.el into core/autoload/test.el 2018-02-03 03:30:49 -05:00
b40924a80b core-os: add IS-WINDOWS & w32-get-true-file-attributes = nil
First step in a long journey towards Windows support.
2018-02-02 23:45:54 -05:00
1dfe6c472a Rewrite doom/info for concise debug output 2018-02-02 23:44:09 -05:00
160902bd18 Remove doom/toggle-fullsreen; redundant with toggle-frame-fullscreen 2018-02-02 20:47:34 -05:00
46225e2830 core-ui: fix comment typo 2018-02-02 20:47:33 -05:00
bbb969fa59 Combine doom/open-scratch-buffer & doom/open-project-scratch-buffer
These two are now doom/open-scratch-buffer. If you're in a project,
a (persistent) scratch buffer is opened. Otherwise, a non-persistent,
transient scratch buffer is opened.

If ARG (universal argument) is non-nil, then use the current window
instead of a new window (or popup, if feature/popup is enabled).

Also, the ex command :x[!] is improved. The BANG = open in current
window.
2018-02-02 20:47:33 -05:00
e71f28601a Fix inconsistencies in fonts across frames #399
Also, minor refactor for doom|init-theme.
2018-02-02 20:47:32 -05:00
bae2287d51 Recenter screen after save-place successfully loads point 2018-02-02 20:47:32 -05:00
d1953e00c4 Remove doom--cycle-real-buffers; refactor kill-this-buffer advice
cycle-real-buffers was a tidbit of complexity that was never necessary
in the first place. This functionality was already available in the form
of the frame buffer-predicate parameter, which controls where functions
like next-buffer and other-buffer can land you.

The only thing I have to do myself, is check for the condition where
there are no more real buffers left to switch to, and in that case send
you to the fallback-buffer.
2018-02-02 20:47:31 -05:00
5b19ad50a6 frame-title-format: just use filename
A blank buffer-file-name causes an error. Rather than overcomplicate
this, I'll just use %b.
2018-02-01 20:42:21 -05:00
d935a813a1 Merge pull request #392 from amosbird/patch-6
Sensible alias
2018-02-01 20:28:15 -05:00
5b817727e2 Use more informative frame title 2018-02-01 20:14:27 -05:00
ca262f5e4e Rename doom-fallback-buffer (variable) => doom-fallback-buffer-name 2018-02-01 20:06:00 -05:00