Commit graph

5126 commits

Author SHA1 Message Date
Henrik Lissner
431ea613b0
lang/python: set PIPENV_MAX_DEPTH in eval handler
Instead of changing the cwd, which chould have other reprecussions for
the code about to be executed.
2018-09-26 20:38:02 -04:00
Henrik Lissner
da55ee2af2
lang/python: fix pipenv support for +python/repl 2018-09-26 20:37:35 -04:00
Henrik Lissner
4a9a2c00d9
Remove smex-completion-read reference
Doom no longer uses smex.
2018-09-26 12:29:55 -04:00
Henrik Lissner
68699c3d5b
lang/python: make repl/eval handlers respect pipenv 2018-09-26 12:28:32 -04:00
Henrik Lissner
fcd1e913c5
tools/magit: update vc on +magit/quit
Instead of magit-post-refresh-hook, which fires much more frequently.
Updating vc across all buffers is expensive, so let's only do it when we
quit magit.

Warning: this may make quitting magit expensive when you have many
buffers open. Still searching for a better solution.
2018-09-26 12:10:00 -04:00
Henrik Lissner
d9a179d071
feature/evil: refactor neotree-make-executor fix
The autoload is necessary in case neotree was installed in another
session.
2018-09-26 10:46:43 -04:00
Henrik Lissner
eb9fa90adf
editor/parinfer: fix void-function evil-define-key errors
Parinfer uses `evil-define-key' without loading evil. This means that if
evil is installed *after* parinfer, parinfer will throw up void-function
errors, because evil-define-key (a macro) wasn't expanded at
compile-time.

So we make extra sure evil is installed before parinfer (or at least,
make sure evil-define-key is autoloaded at install time, in case evil
was installed in another session).
2018-09-26 10:45:05 -04:00
Henrik Lissner
4e0a4e1b51
lang/{ruby,python}: Fix advice arguments errors 2018-09-26 09:57:10 -04:00
UndeadKernel
239c183b70 tools/pdf: recognize modeline and doom-modeline 2018-09-26 12:55:22 +02:00
Henrik Lissner
2a84836c11
+emacs-lisp-eval: emit backtrace on error
Running +eval/region (gr) and +eval/buffer (gR) will use
+emacs-lisp-eval (in emacs-lisp-mode buffers). This change will force it
to emit a backtrace in case of an error.
2018-09-25 23:26:08 -04:00
Henrik Lissner
8bdb42fe15
lang/ruby: major refactor
+ Robe is now to be started manually.
+ Adds more keybindings for robe (including <localleader> ' for
  robe-start).
+ Use ruby-mode if ruby isn't available (e.g. editing ruby files on
  remote systems), enh-ruby-mode otherwise.
+ Added rake, bundler, rvm, rbenv and minitest packages
+ Added $RBENV_ROOT/shims to exec-path. This should fix rbenv support
  for the ruby version display in the modeline.
2018-09-25 22:45:13 -04:00
Henrik Lissner
b91a8f0d2f
lang/python: rewrite modeline version segment
+ Add $PYENV_ROOT/shims was added to exec-path, so pyenv python version
  is picked up on.
+ Fixes out-of-date python version in the modeline of other buffers
  after switching pyenv/pyvenv/conda envs.
+ The pipenv version and regular python display have been merged.
2018-09-25 22:17:41 -04:00
Henrik Lissner
8afbb804d9
lang/ruby: add bundler + keybinds 2018-09-25 16:40:23 -04:00
Henrik Lissner
271e7689ae
Don't error when no gpg keys exist 2018-09-25 10:29:57 -04:00
Henrik Lissner
0c70d1bf08
Remove defunct [h keybind (smart-backward) 2018-09-24 08:36:20 -04:00
Henrik Lissner
3dbeb4e3a7
Add doctstrings to +evil/fold-* commands 2018-09-23 21:06:45 -04:00
Henrik Lissner
8c4504380f
+evil/fold-toggle: don't hide recursively
Otherwise sub-entries will be folded and remain folded when unfolding
entries.
2018-09-23 21:04:20 -04:00
Henrik Lissner
b53b300657
Don't affect ivy-switch-buffer's transformer
ivy-rich already does this under the hood. This is redundant.
2018-09-23 16:30:43 -04:00
Henrik Lissner
5a079c7fd6
Enable company-mode in comint-modes 2018-09-23 16:30:23 -04:00
Henrik Lissner
c2c7def192
editor/multiple-cursors: better command whitelist
+ Fixes explicit usage of evil-escape from evil-mc cursors (e.g. M-x
  evil-escape or C-g, not the escape sequences jk/fd)
+ Fixes delete-char (DEL key) from cursors
+ Fixes all custom commands when used with a COUNT
2018-09-23 10:26:41 -04:00
Henrik Lissner
74af5bde26 ui/modeline: fix buffer file path segment
To cope with changes upstream in the projectile package.
2018-09-22 13:15:12 -04:00
Henrik Lissner
ac63596be8 Fix doom-project-root returning nil if no project
It should return default-directory. A change upstream broke this.
2018-09-22 13:15:12 -04:00
Henrik Lissner
7acece3e0b
Disable projectile mode-line segment
If either module module is active, this is just extra overhead.
2018-09-22 11:47:36 -04:00
Henrik Lissner
f8fb321f2c
Remove outline support from +evil/fold-close-all
It is buggy in modes with a poorly written outline-level function (like
elisp).
2018-09-22 10:34:31 -04:00
Henrik Lissner
736bdeb205
lang/org: fix variable font-size for agenda paths
When you hover your cursor over agenda items, the path to that headline
is displayed in the minibuffer. If org-level-N have unusual :height
values, they'll cause the minibuffer to grow.

This removes any variable font sizes from this display.
2018-09-22 01:37:47 -04:00
Henrik Lissner
9726a982d1
lang/org: revise org-modules & revise load order
Improves the startup performance of org-mode by disabling modules I
don't think are commonly used (it's easy to add back however).
2018-09-21 22:42:26 -04:00
Henrik Lissner
ed1775b42d
lang/org: refactor +babel/ipython library
+ Conform ipython advice and helpers to naming conventions.
+ Refactor out dash.el usage
2018-09-21 22:38:21 -04:00
Henrik Lissner
fad1fc8f1b
Resolve GPG keys by user name instead of address #877
epa-file-encrypt-to is now set to the ids of all keys that match
user-full-name, if it is set. This should fix issues with multiple keys
with the same email addresses.
2018-09-21 14:06:15 -04:00
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
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
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
b653039535
Add :defer-incrementally use-package keyword 2018-09-20 10:42:45 -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
fd7f498858
tools/pdf: hide cursor in pdf-view-mode #892 2018-09-19 19:27:46 -04:00