Commit Graph

3770 Commits

Author SHA1 Message Date
Henrik Lissner
2f4ac32b0d
Load core-lib & refactor x-win advice 2019-10-18 22:09:28 -04:00
Henrik Lissner
80532921bb
Highlight urls in buffers as links 2019-10-18 21:23:02 -04:00
Henrik Lissner
f9e25f95a8
show-paren-when-point-in-periphery = t 2019-10-18 21:10:56 -04:00
Henrik Lissner
ee5cdd13dd
Guess major-mode when saving a fundamental-mode file 2019-10-18 21:10:55 -04:00
Henrik Lissner
d987a81b33
auto-window-vscroll = nil 2019-10-18 17:23:47 -04:00
Henrik Lissner
f2cd5bdf97
Add doom-{call,exec}-process functions & let-cliopts! macro
Needed for 3e947d39b and for upcoming CLI rewrite.
2019-10-17 14:38:00 -04:00
Henrik Lissner
8b57226634
doom/toggle-debug-mode: affect jka-compr-verbose & lsp-log-io 2019-10-17 02:36:19 -04:00
Henrik Lissner
323e0adf45
Minor refactors & reformatting across the board 2019-10-17 01:47:58 -04:00
Henrik Lissner
24b336322c
Fix doom/kill-buried-buffer closing windows
By making doom/kill-all-buffers less gung ho about deleting windows when
the buffer list is empty.
2019-10-14 18:48:42 -04:00
Henrik Lissner
88af741597
Stop auto-revert prompting for confirmation
I misunderstood revert-without-query.
2019-10-14 18:43:40 -04:00
Henrik Lissner
51973dca9b
Move auto-fill-mode to text-mode-hook 2019-10-14 18:25:02 -04:00
Henrik Lissner
da7aef9a4c
Move --restore handler to init.el #1893 2019-10-14 02:54:29 -04:00
Henrik Lissner
98c80ce412
Merge pull request #1889 from rgrinberg/update-projectile-function-autoload
Autoload projectile-locate-dominating-file
2019-10-12 23:50:58 -04:00
Rudi Grinberg
55e00bbd26 re-search-forward to search-forward when no re
When no regular expression is present, it's faster and simpler to use
search-forward

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-10-13 12:25:41 +09:00
Rudi Grinberg
78f808d31e Fix uses of projectile-locate-dominating-file
This function isn't autoloaded so we should include it in the list of
commands like some other projectile functions.

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-10-13 11:37:06 +09:00
Henrik Lissner
30c091d3f5
Fix non-string args to file-exists-p! macro 2019-10-12 00:48:48 -04:00
Henrik Lissner
82167ab48a
Remove :lang vala module
To small to warrant a module and vala-mode is unmaintained. It's trivial
for end users to install it themselves.
2019-10-10 21:31:13 -04:00
Henrik Lissner
0fe576d104
Add more names to winner-boring-buffers 2019-10-10 16:11:42 -04:00
Henrik Lissner
a3fa1e07b1
Refactor doom/kill-*-buffer commands 2019-10-10 16:11:42 -04:00
Henrik Lissner
9e3974d2f3
doom/help-faq: restrict to second-levels headings 2019-10-10 16:11:41 -04:00
Henrik Lissner
4cafaec527
Disable projectile-grep for +{ivy,helm}/grep 2019-10-10 16:11:41 -04:00
Andrew Whatson
94406c0f36 Set a jump point when using imenu 2019-10-10 13:43:47 +10:00
Henrik Lissner
dc24237800
Perform large-file checks after major-mode is decided
Fixes an issue where pdfs (in pdf-view-mode) weren't been converted
correctly because the file was declared large while it was being read in
fundamental-mode.
2019-10-08 21:10:42 -04:00
Henrik Lissner
cb495aabe6
Have so-long-minor-mode disable more expensive minor modes
And not disable font-lock-mode or display-line-numbers-mode, so we can
have basic highlighting.
2019-10-08 21:09:52 -04:00
Henrik Lissner
0426b9d514
Create a jump point before kill-current-buffer
So you can easily "undo" killing it.
2019-10-07 23:56:47 -04:00
Henrik Lissner
0a218021a2
Install from emacsmirror/undo-tree
The maintainer's repo doesn't have http support and I can't guarantee
its uptime.
2019-10-07 21:24:10 -04:00
Henrik Lissner
95258c55d6
Remove xclip-mode & osx-clipboard-mode
Due to the varied approaches to terminal environments, I leave it up to
the user to handle restoration of the clipboard.
2019-10-07 18:06:13 -04:00
Henrik Lissner
6ee96d15aa
Merge pull request #1842 from flatwhatson/undo-tree
Experimental fixes for undo-tree
2019-10-07 16:24:25 -04:00
Henrik Lissner
ddce674a6c
Minor refactors across the board 2019-10-07 16:10:33 -04:00
Henrik Lissner
774ca43e32
dtrt-indent-max-lines = 2000
Reduced from default of 5000 for slightly faster analysis
2019-10-07 16:07:38 -04:00
Henrik Lissner
616dec5b93
Optimize opening large files #1834
Fixes an issue where dtrt-indent and/or nav-flash would hang Emacs when
opening large files, and disables all mode hooks for large
files (without using fundamental-mode so you can at least get syntax
highlighting).
2019-10-07 16:02:23 -04:00
Henrik Lissner
d9945d8964
autoload/format: add doom-format-indent-increment 2019-10-07 12:57:18 -04:00
Henrik Lissner
fa051797f2
Move --restore handler to autoload/sessions 2019-10-07 12:56:53 -04:00
Henrik Lissner
8527897c88
Remove unused delete! macro
Redundant with delq!
2019-10-06 14:13:30 -04:00
Henrik Lissner
bb5ff21203
Remove redundant bookmark-save-flag setting
Its default value is `t`
2019-10-05 20:20:30 -04:00
Henrik Lissner
eae45e664b
doom-load-envvars-file: split-string->parse-colon-path 2019-10-05 13:00:06 -04:00
Henrik Lissner
297728bf74
Generalize doom-file-cookie-p
And move it to doom-file-cookie-p for anyone to use.
2019-10-04 22:42:53 -04:00
Henrik Lissner
d297dc6934
Minor refactor & comment revision across the board 2019-10-03 23:33:59 -04:00
Maximiliano
dea5d84069 Add more api demos (#1845)
* Added function Demos
* Added use-package demos
* Some corrections
* Fix duplicated use-package! type
2019-10-03 14:51:08 -04:00
Henrik Lissner
ed96d60e2c
Add comments for undo-tree advice
Describes why we try to compress undo-tree history data. I'm aware that
undo-tree-auto-save-history is disabled, but that may change in the near
future.
2019-10-03 12:04:54 -04:00
Henrik Lissner
03f6b3e77c
Consolidate warnings in use-package-hook!'s docstring
Folks commonly abuse this macro. I'd rather they don't, unless they know
exactly what they're doing.
2019-10-01 17:41:25 -04:00
Andrew Whatson
aa087e3af2 Experimental fixes for undo-tree
Increase `undo-limit`, `undo-strong-limit` and `undo-outer-limit` by a
factor of ten, which should prevent emacs from prematurely truncating
the undo history and corrupting the tree.

Restore `undo-tree-auto-save-history` which was disabled to avoid
exacerbating the undo history truncation.

Change the `undo-tree` recipe to grab the latest version from the
maintainer's repostiory instead of the outdated ELPA version.

Restore `undo-tree-enable-undo-in-region` which should be fixed in the
latest version of `undo-tree`.
2019-10-01 22:37:18 +10:00
Henrik Lissner
018fc8318d
cli/env: ignore TERM envvar 2019-09-30 16:47:32 -04:00
Henrik Lissner
c080ae8c9f
Only disable smartparens in replace mode if it is enabled
Prevents an issue where smartparens would re-enable itself, even when it
has been disabled by the user.
2019-09-30 14:58:34 -04:00
Henrik Lissner
67617254bc
Optimize save-place caching
By reducing its limit from 200 to 100 (its default is 400) and by *not*
prettifying its cache file (pp is much more expensive than prin1).
2019-09-28 12:47:20 -04:00
Henrik Lissner
4200e2e6d9
Merge pull request #1829 from UndeadKernel/feature-session_files
doom/core: avoid the litter of session.* files
2019-09-28 12:46:30 -04:00
Undead Kernel
a3d79dcfa5 doom/core: avoid the litter of session.* files
When the  x-window system commands emacs to quit, emacs saves a session in
`.emacs.d/session.*` by default. There is no easy way to change the save
path. This commit overwrites the function responsible for creating the session
file name. We set the session file to reside in `doom-cache-dir`.
2019-09-28 15:22:40 +02:00
Henrik Lissner
38e445afe7
Fix #1831: typo & extra args in doom/toggle-narrow-buffer 2019-09-27 11:34:21 -04:00
Henrik Lissner
4a8cef56ea
Fix doom/info omitting flags on some modules 2019-09-26 21:57:55 -04:00
Henrik Lissner
45240699e0
Remove doom-elpa-dir variable
And just use package-user-dir. No need for two variable when one will
do.
2019-09-26 14:26:47 -04:00