Commit Graph

8742 Commits

Author SHA1 Message Date
79e8a466a3 tools/flycheck: change idle delay behavior
Flycheck will now wait longer to check for errors when the last check
produced no errors, and quicker when there are. It will also avoid
displaying flycheck-posframe if in insert mode (as it can disturb cursor
positioning and change evil state in some edge cases).
2019-04-02 00:52:09 -04:00
cd68044b5d Merge pull request #1299 from jochu/patch-1
Escape key regexps when building which-key leader prefix
2019-04-02 00:30:05 -04:00
9d1aae6a0f Merge pull request #1300 from zeronone/patch-1
Add vterm-mode to evil-escape-excluded-major-modes
2019-04-02 00:29:19 -04:00
7dcc4fc55b Merge pull request #1302 from shanavas786/fd-ex-name
Use variable for `fd-find` binary name
2019-04-02 00:27:33 -04:00
390edee702 ui/fci -> fill-column: replace fci w/ hl-fill-column
fci was buggy, slow and presented numerous incompatibilities with other
modes. It is also unmaintained.

Relevant to #1045
2019-04-01 13:44:20 -04:00
5bcab488a7 Add {vc,git-gutter}-mode checks to vc refresher 2019-04-01 13:21:25 -04:00
a6cc66e21e Refresh exec-path & shell-file-name
When loading envvars, since `load-env-vars` only affects the environment
and not Emacs' variables.
2019-04-01 13:15:15 -04:00
5b43b2840b Fix RET/TAB company keybinds in GUI Emacs 2019-04-01 13:12:03 -04:00
bdd410cb9c Refresh vc on-demand after quitting magit #1298
To avoid the long delay when you have many buffers open while quitting
magit.
2019-04-01 13:12:00 -04:00
d974acfef1 Use variable for fd-find binary name 2019-04-01 12:18:12 +05:30
0cfbdc1f3c Add vterm-mode to evil-escape-excluded-major-modes
`jk` doesn't work as expected in `vterm`. 

Do I need to also check for `vterm` feature flag?
2019-04-01 10:56:47 +09:00
ec76d9acb6 Escape key regexps when building which-key leader prefix 2019-03-31 12:38:42 -07:00
445673b0be Remove reference to old variable in do-repeat! 2019-03-30 13:57:23 -04:00
848399fec1 Add C-c C-e to invoke wgrep from project search
To be consistent with helm-ag-edit
2019-03-30 13:27:09 -04:00
838edcea59 Add org export-to-clipboard commands & ox-clip
These work from markdown-mode as well as org-mode. Also adds
+org/export-to-clipboard-as-rich-text for pasting org/markdown rendered
as RTF.
2019-03-30 02:18:33 -04:00
da02fa8c38 lang/markdown: add markdown-command check 2019-03-30 02:17:52 -04:00
be6efd8dbf Fix wrong-num-of-args on +eval/open-repl-same-window #1291 2019-03-30 00:09:12 -04:00
49bbc7107f Disable fuzzy matching for counsel-rg #1292 2019-03-30 00:07:57 -04:00
36919fedda bin/org-capture: refactor & use -k switch 2019-03-29 23:49:47 -04:00
99aefd6e02 Disable projectile cache during elfeed-db-compact 2019-03-29 03:52:24 -04:00
7eb479e3f7 config/literate: set config.el as default target 2019-03-29 03:40:56 -04:00
7488b51e9a Prevent void-function load-env-vars errors
In case load-env-vars hasn't been autoloaded yet.
2019-03-29 01:51:36 -04:00
803ca2863a Use resolved, absolute paths in doom-project api
Ensures projectile caches files under the right key.
2019-03-28 19:57:34 -04:00
c0b00327c2 Purge excess from projectile's cache
Bloated projectile caches can cause freezing and delays. This is
especially so if you accidentally index $HOME or /, which will bloat
them into the hundreds of MBs.

+ Adds purging of blacklisted, over-sized and non-projects from
  projectile's cache when Emacs is killed.
+ Projectile's project file cache will now expire after a week.
+ Corrects file paths in core/doctor's filesize checks.
2019-03-28 19:57:34 -04:00
0085d089f3 Refactor doom*projectile-locate-dominating-file 2019-03-28 16:43:04 -04:00
9e24db7ed3 Don't override embrace's default f pair #1285
This should really be resolved upstream, but until it is this should
ensure our custom `f` pair for lisp doesn't end up deleting the global
`f` pair.
2019-03-28 16:41:21 -04:00
132ad7d391 Half-revert 92e604d0
+ Fixes config.org buffer being killed when tangled
+ Tangle files in same session if ob-tangle is loaded (and in
  noninteractive sessions). i.e. only tangle quietly when starting up
  interactive Emacs.
2019-03-28 16:20:25 -04:00
ece7b8fdcd Fix doom-project-find-file on non-project DIRs
This function should be as DWIM as possible.
2019-03-28 15:07:14 -04:00
7b8a2fcff8 Don't capture INSECURE, DEBUG & YES envvars
They should be transient.
2019-03-28 14:47:31 -04:00
92e604d0dc config/literate: don't tangle file in this session
org-babel-tangle-file has reportedly killed config.org buffers, despite
them being visited. Since we're not doing anything with the return
value, may as well keep it in a separate process.
2019-03-28 14:32:16 -04:00
af37f9af58 Fix wrong-number-args error on doom env 2019-03-28 13:30:39 -04:00
eb1296387f Make load-env-vars a core package
Fixes a race condition where the load-env-vars package is used before it
was (or could be) installed.
2019-03-28 13:30:39 -04:00
111b3758d4 Merge pull request #1286 from gilbertw1/dont-open-fallback-buffer-delete-workspace
Don't open `doom-fallback-buffer` on del workspace
2019-03-28 03:06:37 -04:00
9b97631ddf Fix typo in env file template 2019-03-28 02:25:28 -04:00
2f0ad0e269 Fix -y/--yes/YES in doom quickstart 2019-03-28 02:24:19 -04:00
ddfcc4299c bin/doom-doctor: minor refactor
Also allow Doom init errors to be debugged.
2019-03-28 02:01:38 -04:00
5cdc2127be Refactor config/literate module
+ Now recompiles literate config if you modify org files in DOOMDIR
+ Replaced +literate/compile with +literate/reload
+ Calls org-babel-tangle-file directly if org package is loaded
+ Change mtime check mechanism for literate tangling at startup
2019-03-28 01:59:25 -04:00
b3d931d7ce Refactor undo-tree advice 2019-03-28 01:56:09 -04:00
37525bb1bd Fix clipboard support on Windows #1284
Windows uses UTF-16 for clipboard content. selection-coding-system is
set correctly on Windows systems so we leave it to its default there.
2019-03-28 01:56:09 -04:00
0a1de03ca1 Remove eshell/term from dtrt excluded modes
Unnecessary because their buffers don't make it through
doom|detect-indentation's condition anyway.
2019-03-28 01:56:09 -04:00
2dc52bc9be 💥 Replace exec-path-from-shell w/ 'bin/doom env'
IMPORTANT: This is a breaking update for Mac users, as your shell
environment will no longer be inherited correctly (with the removal of
exec-path-from-shell). The quick fix is: 'bin/doom env refresh'. Also,
the set-env! autodef now does nothing (and is deprecated), be sure to
remove calls to it in your config.

Smaller changes:
+ This update also adds --no-* switches to doom quickstart
+ Includes general improvements to the documentation of several bin/doom
  commands.
+ Moves doom/reload* commands to core/autoload/config.el
+ doom/reload-project has been removed (it didn't actually do anything)

The breaking change:
This update adds an "envvar file" to Doom Emacs. This file is generated
by `doom env refresh`, populated with variables scraped from your shell
environment (from both non-interactive and interactive sessions). This
file is then (inexpensively) loaded at startup, if it exists.

+ The file is manually generated with `doom env refresh`.
+ It can be regenerated automatically whenever `doom refresh` is run by
  running `doom env enable` (`doom env clear` will reverse this and
  delete the env file).
+ `doom quickstart` will ask if you want to auto-generate this envvar
  file. You won't need it if you're confident Emacs will always be
  started from the correct environment, however.
+ Your env file can be reloaded from a running Emacs session with `M-x
  doom/reload-env`. Note: this won't work if the Emacs session you're
  running it in doesn't have a correct SHELL set. i.e. don't use this to
  create your first env file!

The idea isn't mine -- it's borrowed from Spacemacs -- and was
introduced to me in #1053 by @yurimx. I was impressed with it. Prior to
this, I was unhappy with exec-path-from-shell (no hate to the dev, I
understand its necessity), and 'doom patch-macos' wasn't ideal for mac
users (needed to be reapplied every time you update Emacs). What's more,
many users (even Linux users) had to install exec-path-from-shell
anyway.

This solution suffers from none of their shortcomings. More reliable
than patch-macos, more performant and complete than
exec-path-from-shell, and easily handled by bin/doom.
2019-03-28 01:56:09 -04:00
46a5be1e52 Don't open doom-fallback-buffer on del workspace
The `current-buffer` wasn't being updated after switching workspaces and
was therefore failing the `doom-buffer-frame-predicate` check.
2019-03-27 20:17:19 -04:00
ab616cfb95 Merge pull request #1247 from jdnavarro/develop
Maximize window vertically/horizontally
2019-03-26 03:45:52 -04:00
f27da5e305 Merge pull request #1282 from xhcoding/develop
fix +indent-guides|disable-maybe
2019-03-26 03:44:24 -04:00
820d77c546 tools/magit: bind TAB in more magit modes 2019-03-26 03:43:23 -04:00
2364415140 Allow exec-path-from-shell config everywhere
In case linux users install exec-path-from-shell themselves. However, it
still won't be installed by default for anyone but Mac users.
2019-03-26 03:42:32 -04:00
c2d0cae6a5 doom-project-find-file: avoid helm-projectile #1274
helm-projectile-find-file misbehaves as a workspace project-switch
handler (likely because it runs asynchronously and misses the lexical
value of `default-directory`), so we avoid it and use
projectile-find-file directly (which still uses helm, just not the
helm-projectile package).
2019-03-26 03:38:37 -04:00
379c01ba1e ui/modeline: fix icons in daemon-spawned frames
Fix modeline icons in daemon-spawned graphical frames. We have our own
mechanism for disabling all-the-icons, so we don't need doom-modeline to
do it for us. However, this may cause unwanted padding in the modeline
in daemon-spawned terminal frames. If it bothers you, you may prefer
`doom-modeline-icon' set to `nil'.
2019-03-25 01:28:59 -04:00
c6daca8e94 fix typo
fix Symbol’s value as variable is void: highlight-indent-guides
2019-03-25 10:01:54 +08:00
4c6b9d25c1 Merge pull request #1 from hlissner/develop
merge
2019-03-25 09:58:18 +08:00