Commit Graph

2322 Commits

Author SHA1 Message Date
f3b99779c9 Add doom-after-switch-frame-hook; fix over-eager switch-window hooks
Switch-window hooks would fire too frequently; like when switching to
the same window, clicking in windows, or from the minibuffer (e.g.
during ivy sessions).
2018-03-26 06:40:04 -04:00
1282072db3 Correct doom-initialize's docstring 2018-03-26 03:18:28 -04:00
adfd26bbf4 Fix error when doom-packages-file doesn't exist 2018-03-26 03:11:29 -04:00
72eb1422c5 Ensure doom-packages is initialized in doom-initialize 2018-03-26 03:07:28 -04:00
03ed4c39e8 Add package! & disable-packages! convenience macros 2018-03-26 02:59:08 -04:00
f67b4ec743 Add docstring for doom-module-put 2018-03-26 02:58:11 -04:00
21a23228f2 Refactor initialization; allow package! to universally disable packages
No need for def-package-hook! for disable packages anymore, you can do
it from package! in packages.el files.
2018-03-26 02:57:37 -04:00
22e18ad0a6 core-os: remove unnecessary after! wrapping 2018-03-25 03:07:18 -04:00
57065c4a71 Don't prompt to save for non-file-visiting buffers on kill-this-buffer 2018-03-24 17:05:06 -04:00
5eadfdc880 Add EMACS26+ & EMACS27+ constants 2018-03-24 07:25:00 -04:00
b5db4f1fb6 Debug log missing modules; remove log! macro 2018-03-24 07:25:00 -04:00
326763ab3d doom/cleanup-processes => doom/cleanup-buffer-processes 2018-03-23 16:01:46 -04:00
f064c5d1ae Change doom/kill-all-buffers behavior (C-u = only kill project buffers) 2018-03-23 16:01:35 -04:00
21f8b6933b Remove unused minibuffer/system libraries
They aren't necessary anymore
2018-03-23 02:37:15 -04:00
24043d9bfd Silence beginning/end-of-line/read-only errors on motions in minibuffer 2018-03-23 02:29:17 -04:00
bc6000a731 Refactor doom//reload-theme; remove obsolete hooks 2018-03-22 23:26:58 -04:00
f8801640ba Mention :leader/:localleader in map! docstring 2018-03-22 21:15:07 -04:00
9f2a94c25a Only init fonts once, and for any (tty/gui) session 2018-03-22 19:32:08 -04:00
4fc2897372 core-ui: define doom-*-switch-*-hooks & minor refactor
doom-init-theme-hook is now obsolete; to be replaced with
doom-load-theme-hook.
2018-03-22 19:26:13 -04:00
358d7af9ac doom/kill-all-buffers: reduce redundancy 2018-03-22 06:31:16 -04:00
abe42fcb9a Give config/default keybinds higher precedence
This is highly experimental! It gives keybinds bound with `map!` much
higher precedence, allowing it to override the defaults imposed by
major modes and plugins (like evil-collection).
2018-03-22 06:28:33 -04:00
3001e59ecc Don't destroy load-path on reload 2018-03-22 06:28:33 -04:00
da92423e40 Inhibit doom/escape on ESC while executing macros #471 2018-03-21 15:11:52 -04:00
51b5fb0f44 Add missing modes to editorconfig-indentation-alist 2018-03-21 05:19:01 -04:00
dec3ecba6e package--initialized = nil in doom-initialize; in case of reloads 2018-03-20 21:12:49 -04:00
afdf2047a7 Improve error handling in doom/info 2018-03-20 20:45:16 -04:00
3777474471 Don't remove projectile-root-local from root file functions
Doesn't do anything for the cache.
2018-03-20 03:39:03 -04:00
ab180cd51e Preselect last command in menus; reverse universal arg behavior
+ The universal argument tells a menu to use the last run command, if
  available.
+ If a last run command exists, preselect it in the menu.
2018-03-19 02:02:52 -04:00
1b5758a6da Minor refactor 2018-03-18 03:36:05 -04:00
2a45b80e2a Revert cfe2fe87; needs better checks 2018-03-15 04:49:49 -04:00
c760b33212 Fix recursive load errors when an enabled module doesn't exist 2018-03-14 21:21:58 -04:00
c54fb7b8c0 Fix package advice interfering with doom-initialize
...by aggressively reloading the config from within doom-initialize (too
early, some state hasn't been initialized at this point).
2018-03-14 20:12:15 -04:00
8898c5cb9a Fix void-function doom*initialize-packages error
Occurs before autoloads are generated.
2018-03-14 19:52:25 -04:00
dac0307a80 Rewrite menu system
On consecutive runs, def-menu dispatchers now rerun the last command,
unless the universal argument is passed. e.g. SPC u SPC m b

The :cwd and :project properties now accept functions (take no arguments
and return a directory or boolean).
2018-03-14 19:03:32 -04:00
ce091ddde6 Improve reliability of 'nocache & without-project-cache! macro 2018-03-14 18:29:16 -04:00
1352ac4553 Exclude images and remote files from recentf 2018-03-14 18:28:48 -04:00
aec4fbe590 Always apply ansi color codes to compilation buffers 2018-03-14 18:28:25 -04:00
cfe2fe87d9 Reduce screen flicker when creating a new frame
...by only reloading the theme if the new frame is of a different type
from the last (tty and GUI frames).
2018-03-14 18:26:59 -04:00
cdbd677423 Allow use of package.el #444
This makes package.el commands safe to use in Doom, and prevents errors
caused by unitialized state, by running package-initialize before
you use a package.el command.
2018-03-14 18:25:25 -04:00
ccaf5eabbd Fix switch-window hooks; add switch-buffer hooks 2018-03-14 04:52:09 -04:00
44d30ca3ce Fix doom-active-minor-modes 2018-03-14 04:49:14 -04:00
03e6900d3c doom//packages-update: output feedback earlier 2018-03-13 03:18:02 -04:00
fbb9947c7e Add doom-{after,before}-switch-window-hook hooks 2018-03-12 13:32:02 -04:00
00a9a08afb Automatically add execute permission to files with a shebang line 2018-03-12 13:32:02 -04:00
74c8b1d113 Rewrite doctor; move warn! blocks out in doctor.el files 2018-03-12 13:32:01 -04:00
5c36519dab Ignore package! if package is disabled
This allows you to disable packages with (def-package-hook! X :disable)
without an accompanying (package! X :ignore t). This reduces redundancy.
2018-03-12 13:32:01 -04:00
a8906cc077 Add note to def-package-hook! to use it only in init.el files 2018-03-12 13:32:01 -04:00
23fda88b2f Detach doom-modules-dirs from doom! macro
Formerly, you were required to have a doom! call (even a blank one) in
~/.doom.d/init.el if you wanted to have private sub-modules in
~/.doom.d/modules/.

No more. It is no longer doom!'s responsibility to affect
`doom-modules-dirs`. This is now done by :config private, while the
Doom modules directory is now the initial entry in doom-modules-dirs.
2018-03-12 13:32:00 -04:00
c6931db3f8 Fix module count in benchmark 2018-03-12 13:32:00 -04:00
724773cbe4 Up the doom-modules :size to 100 2018-03-12 13:32:00 -04:00