Henrik Lissner
ccaa642d98
lang/python: fix pipenv creating Pipfiles in pwd #888
...
`pipenv run ...` searches for a Pipfile itself, but doesn't search far
enough, creating a Pipfile in the current directory. Instead, we run the
command from the pipenv project root so it doesn't have to search.
2018-09-21 13:33:19 -04:00
Henrik Lissner
77b5571ed9
ui/modeline: fix *invalid* in global-mode-string
2018-09-21 13:33:18 -04:00
Henrik Lissner
3fab4fbaba
Merge pull request #821 from patrl/agda
...
:lang agda (done)
2018-09-21 11:09:31 -04:00
Henrik Lissner
20cf412c96
tools/pdf: revert fd7f498
...
Causes an issue where cursor invisibility persists through a workspace
session restore.
Relevant to #892
2018-09-21 10:47:26 -04:00
Patrick Elliott
c23fe02869
Remove syntax highlighting
2018-09-21 14:52:42 +02:00
Henrik Lissner
55c54a9848
Add ]o [o keybinds -> next/prev outline heading
2018-09-21 00:55:30 -04:00
Henrik Lissner
a65868ba89
Fix "end of buffer" errors on backspace
2018-09-21 00:52:53 -04:00
Henrik Lissner
92cf264b1b
lang/cc: don't complain if irony isn't installed
2018-09-20 23:13:17 -04:00
Henrik Lissner
02a5109c4f
Comment on disabling fci-mode in org-mode
2018-09-20 22:28:39 -04:00
Henrik Lissner
1b3511890e
feature/evil: fix overzealous folding from :n TAB
...
Changes +evil/matchit-or-toggle-fold to be less trigger-happy about
toggling folds (it will only open folds not, not toggle them).
Also updates its docstring.
2018-09-20 22:27:15 -04:00
Henrik Lissner
feabbc31da
feature/evil: add +evil/fold-{next,previous}
...
Brings zj/zk to evil
2018-09-20 22:27:01 -04:00
Henrik Lissner
5410f1d575
feature/evil: add arbitrary code folding keybinds
2018-09-20 22:27:01 -04:00
Henrik Lissner
6fce87bd06
feature/evil: refactor folding & outline support
...
Code folding commands will now obey outline headers (if
outline-minor-mode is on and in outline-mode).
2018-09-20 22:26:36 -04:00
Henrik Lissner
9245e030bb
Fix doom/reload-font for XFT fonts
2018-09-20 22:22:14 -04:00
Henrik Lissner
c3b39be4ab
lang/crystal: improve dtrt-indent support
2018-09-20 15:43:42 -04:00
Henrik Lissner
aa08f338de
lang/emacs-lisp: add outline-minor-mode
...
And simplify outline-regexp for elisp buffers.
2018-09-20 15:28:03 -04:00
Henrik Lissner
cc1c28a27c
Fix dual windows when opening files via terminal #850
2018-09-20 15:01:28 -04:00
Henrik Lissner
e38b710f29
Update docstrings for theme & font variables
2018-09-20 14:31:47 -04:00
Henrik Lissner
3cd0db82b8
Append setq-hook! hooks
...
So that later setq-hook! calls will overwrite earlier ones.
2018-09-20 14:31:47 -04:00
Henrik Lissner
c8b07f3caa
Fail gracefully if incremental load fails
...
...and continue loading other packages regardless.
2018-09-20 10:42:45 -04:00
Henrik Lissner
b653039535
Add :defer-incrementally use-package keyword
2018-09-20 10:42:45 -04:00
Henrik Lissner
9c4147bbbb
Merge pull request #891 from edwintorok/theme-elc
...
Load .elc even for themes
2018-09-20 09:15:19 -04:00
Henrik Lissner
25d19514de
tools/upload: refactor safe-local-variable setters
2018-09-19 23:58:01 -04:00
Henrik Lissner
e0e63850d4
tools/upload: mark file-local variables as safe
2018-09-19 23:51:56 -04:00
Henrik Lissner
40a2fffac7
tools/upload: clarify instructions in comments
2018-09-19 23:48:05 -04:00
Henrik Lissner
f415762e8b
completion/ivy: fix ivy-rich integration
2018-09-19 23:34:00 -04:00
Henrik Lissner
77255a63e0
lang/org: refactor & expand org-capture-templates
...
+ Adds three new default org-capture templates, for todo, notes and
changelogs. It will use the first {todo,notes,changelog}.org file
found up the file heirarchy from the current file, or will use
{project-root}/X.org.
+ Variables in org-capture-templates are now resolved relative to
org-directory, if they aren't absolute.
+ Display target file in org capture window header-line.
Mentioned in #886 .
2018-09-19 23:30:00 -04:00
Henrik Lissner
1e710e94e3
Minor refactors
...
+ cl-flet* -> cl-flet
+ refactor display-line-numbers-mode
2018-09-19 19:43:32 -04:00
Henrik Lissner
9970fdac2c
Enable highlight-numbers-mode in conf-modes
2018-09-19 19:42:21 -04:00
Edwin Török
228204926d
Load .elc even for themes
...
Even when an `.elc` is preset `load-theme` would attempt to load the `.el` first,
to give the opportunity to inspect the theme.
However we are loading themes automatically from (M)ELPA, and loading a
theme package is no more dangerous than loading a regular package.
So override the search order for themes and atttempt to load the `.elc`
first.
This improves startup time by ~25ms with the default theme.
Improved implementation by @hlissner.
Signed-off-by: Edwin Török <edwin@etorok.net>
2018-09-20 00:41:54 +01:00
Henrik Lissner
ba16dd8954
Resolve symlinks in doom-emacs-dir (and inline it)
2018-09-19 19:41:46 -04:00
Henrik Lissner
cc28aacecb
Don't inline DOOMDIR in doom-private-dir
...
Breaks DOOMDIR when config is byte-compiled, as mentioned in #900
2018-09-19 19:27:49 -04:00
Henrik Lissner
fd7f498858
tools/pdf: hide cursor in pdf-view-mode #892
2018-09-19 19:27:46 -04:00
Henrik Lissner
b4f36c8967
Merge pull request #898 from edwintorok/popup
...
Fix race condition in popup load
2018-09-19 18:25:55 -04:00
Henrik Lissner
6e2ee7052d
Merge pull request #899 from edwintorok/emacs27
...
Emacs27+: reduce number of GCs on startup from 4 to 1
2018-09-19 18:14:40 -04:00
Henrik Lissner
a9b4fe2960
Hard code gc-cons-threshold in early-init.el
...
In the interest of DRY-ness, I avoid redefining `doom-gc-cons-upper-limit`. This value is likely to diverge from the default value of `doom-gc-cons-upper-limit` in the future anyway.
2018-09-19 18:14:01 -04:00
Edwin Török
fae47fc448
Emacs27+: reduce number of GCs on startup from 4 to 1
...
Signed-off-by: Edwin Török <edwin@etorok.net>
2018-09-19 21:51:43 +01:00
Edwin Török
27e17ace67
Fix race condition in popup load
...
When compiling everything I got this on Emacs startup:
```
Debugger entered--Lisp error: (void-variable +popup--display-buffer-alist)
(setq +popup--old-display-buffer-alist display-buffer-alist display-buffer-alist +popup--display-buffer-alist window--sides-inhibit-check t)
(cond (+popup-mode (add-hook 'doom-escape-hook (function +popup|close-on-escape) t) (add-hook 'doom-cleanup-hook (function +popup|cleanup-rules)) (setq +popup--old-display-buffer-alist display-buffer-alist display-buffer-alist +popup--display-buffer-alist window--sides-inhibit-check t) (let ((--dolist-tail-- +popup-window-parameters)) (while --dolist-tail-- (let ((prop (car --dolist-tail--))) (setq window-persistent-parameters (cons (cons prop 'writable) window-persistent-parameters)) (setq --dolist-tail-- (cdr --dolist-tail--)))))) (t (remove-hook 'doom-escape-hook (function +popup|close-on-escape)) (remove-hook 'doom-cleanup-hook (function +popup|cleanup-rules)) (setq display-buffer-alist +popup--old-display-buffer-alist window--sides-inhibit-check nil) (+popup|cleanup-rules) (let ((--dolist-tail-- +popup-window-parameters)) (while --dolist-tail-- (let ((prop (car --dolist-tail--))) (delq (assq prop window-persistent-parameters) window-persistent-parameters) (setq --dolist-tail-- (cdr --dolist-tail--)))))))
(let ((last-message (current-message))) (setq-default +popup-mode (if (eq arg 'toggle) (not (default-value '+popup-mode)) (> (prefix-numeric-value arg) 0))) (cond (+popup-mode (add-hook 'doom-escape-hook (function +popup|close-on-escape) t) (add-hook 'doom-cleanup-hook (function +popup|cleanup-rules)) (setq +popup--old-display-buffer-alist display-buffer-alist display-buffer-alist +popup--display-buffer-alist window--sides-inhibit-check t) (let ((--dolist-tail-- +popup-window-parameters)) (while --dolist-tail-- (let ((prop (car --dolist-tail--))) (setq window-persistent-parameters (cons (cons prop 'writable) window-persistent-parameters)) (setq --dolist-tail-- (cdr --dolist-tail--)))))) (t (remove-hook 'doom-escape-hook (function +popup|close-on-escape)) (remove-hook 'doom-cleanup-hook (function +popup|cleanup-rules)) (setq display-buffer-alist +popup--old-display-buffer-alist window--sides-inhibit-check nil) (+popup|cleanup-rules) (let ((--dolist-tail-- +popup-window-parameters)) (while --dolist-tail-- (let ((prop (car --dolist-tail--))) (delq (assq prop window-persistent-parameters) window-persistent-parameters) (setq --dolist-tail-- (cdr --dolist-tail--))))))) (run-hooks '+popup-mode-hook (if (default-value '+popup-mode) '+popup-mode-on-hook '+popup-mode-off-hook)) (if (called-interactively-p 'any) (progn (customize-mark-as-set '+popup-mode) (if (and (current-message) (not (equal last-message (current-message)))) nil (let ((local "")) (message "+Popup mode %sabled%s" (if (default-value '+popup-mode) "en" "dis") local))))))
+popup-mode()
doom-try-run-hook(+popup-mode)
run-hook-wrapped(doom-try-run-hook +popup-mode)
doom|init-ui()
run-hooks(emacs-startup-hook term-setup-hook)
#f(compiled-function () #<bytecode 0x46c615>)()
normal-top-level()
```
Signed-off-by: Edwin Török <edwin@etorok.net>
2018-09-19 21:43:56 +01:00
Henrik Lissner
f25a5942e8
lang/scala: fix void-variable dtrt-indent-hook-mapping-list
2018-09-19 00:01:33 -04:00
Henrik Lissner
54e8577bf6
Simplify doom|init-fonts: add xft font support
...
custom-set-faces is somewhat overkill for this. It overwrites any user
customizations for the default & variable-pitch faces, and saves them to
custom-file, which may cause those settings to persist even when we
don't want them to.
This new solution is a little faster, is more respective of
customizations, and adds XFT font string support.
XFT font strings are a little more powerful. For example, the :antialias
font-spec property was unreliable, but now you can use:
(setq doom-font "Fira Mono:pixelsize=12:antialias=off")
2018-09-18 22:48:21 -04:00
Henrik Lissner
b76a09539c
Fix helm TAB completion from org-insert-link #897 #829
...
This is a tricky issue and a tricky fix. See the comments in the commit
for an explanation.
2018-09-18 21:44:59 -04:00
Henrik Lissner
316aa428fb
lang/evil: refactor +everywhere
...
Removed unnecessary blocks and reduced the amount of code to maintain.
2018-09-18 21:39:54 -04:00
Henrik Lissner
5ef94de541
Minor refactor, reformat & comment revision
2018-09-18 21:39:54 -04:00
Henrik Lissner
0c39e73a1e
Refactor/reformat core-ui
...
+ Move minibuffer fringe disabler to ui/doom
+ Disable blink-cursor-mode (too distracting, causes other issues e.g.
#892 )
2018-09-18 15:19:50 -04:00
Henrik Lissner
895df84f8b
Add key-to-key binding support to map!
...
Experimental, and will eventually be replaced by general-simulate-key.
2018-09-18 15:19:50 -04:00
Henrik Lissner
80e8ccec1c
Alias +org-default-notes-file to org-default-notes-file
2018-09-18 15:19:50 -04:00
Henrik Lissner
9e79ea8c9c
Bind C-w O => doom/window-zoom #890
...
+ C-w o enlargens the current window
+ C-w O deletes all other windows
Both keys undo the change on second use (unless you have changed the
frame too much since).
2018-09-18 15:19:50 -04:00
Henrik Lissner
d332f00ca7
ui/doom-modeline: fix evil visual block indicator #895
2018-09-18 15:19:50 -04:00
Henrik Lissner
6a44cf0124
editor/reformat: refactor & fixes
...
+ Change +format-type to +format-region-p (now a boolean)
+ Add PRESERVE-INDENT-P boolean argument to +format-buffer
+ Add +format-preserve-indentation variable (only controls indent
preservation during +format/buffer, not +format/region, where it's
always enabled).
+ Fix error arising from +format|buffer hook when no formatter is
defined for the current mode #893
+ Change +format|buffer to alias for +format/buffer.
2018-09-18 15:19:50 -04:00
Henrik Lissner
f4e119a642
Couple core-packages to package.el sooner
...
This way, if the user loads package.el themselves, doom's package.el
settings will take effect immediately.
2018-09-18 15:19:50 -04:00