Commit graph

4000 commits

Author SHA1 Message Date
Patrick Elliott
e5fc8b6c81 Merge branch 'develop' of https://github.com/hlissner/doom-emacs into develop 2018-06-26 02:19:25 +02:00
Henrik Lissner
af41e17355
Minor reformatting & docstring tweak 2018-06-26 01:48:15 +02:00
Henrik Lissner
77eee38c41
Make deprecated :repl setting DRY 2018-06-26 01:48:09 +02:00
Henrik Lissner
6310236f51
Appease the holy byte-compiler 2018-06-26 01:46:34 +02:00
Henrik Lissner
d9e58e36e9
Merge evil-org-agenda init with evil-org 2018-06-26 01:46:15 +02:00
Henrik Lissner
017ba8d79c
Autoload defhydras & use new naming convention
Phasing out the +module@name convention for plain old
+module-name-hydra, which is more compatible with elisp reflection tools
like describe-function and such.

Also, Emacs starts up faster now. Tee hee.
2018-06-26 01:43:54 +02:00
Henrik Lissner
3134df8f43
Refactor smerge-mode config
Remove +vcs|enable-smerge-mode-maybe, as this is already automatically
enabled when current file is has merge conflicts.

Moved +hydra-smerge to autoloads file, and add it to smerge-mode-hook.
2018-06-26 01:32:05 +02:00
Henrik Lissner
14a6d7710c
Prevent recursive require errors with evil-org
Caused when evil-org-set-key-theme is called too early (somehow).

Also makes evil-org-key-theme customizable, so it doesn't override a
user's changes to it.

Reported by @majorgreys
2018-06-26 01:16:01 +02:00
Alex Reinisch
ff6e4437a2 Fix handler calls to reference lisp-mode.
`set-repl-handler!` helps with opening a repl when a particular mode is
active in a buffer. We want to be able to open a `sly-mrepl` whenever we
are in a lisp buffer, so we should have the repl handler look for
`'lisp-mode` to define opening a sly repl.

I assume the lookup handlers should be making sure we are in a lisp
buffer (similar reasoning to the repl-handler).
2018-06-25 15:56:50 -05:00
Henrik Lissner
24fbf1bf0c
Complain if wakatime binary can't be found 2018-06-25 20:19:33 +02:00
Henrik Lissner
cba5270a7c
Fix sp-elixir-skip-def-p void-function error #712 2018-06-25 20:19:33 +02:00
Henrik Lissner
0dc0ccc63e
Refactor +popup*org-pop-to-buffer
Simplify pop-to-buffer call.
2018-06-25 20:19:33 +02:00
Henrik Lissner
8fcc12ed08
Add +popup-display-buffer-fullframe
Adds support for the saved-wconf window parameter. If a popup possesses
a window configuration in this parameter, it will be restored when the
popup (or its popup buffer) is killed.
2018-06-25 19:28:09 +02:00
Henrik Lissner
8a4f15b01c
Refactor smartparens default rules
Move them to config/default, but move single-lang-specific ones to their
respective modules.
2018-06-25 15:54:38 +02:00
Henrik Lissner
afa1fe3fc5
Phase out meta keybinds in helm+evil integration
We want to generally avoid meta. M-RET is an exception, and is commonly
used as an "alternate open" key.
2018-06-25 15:45:24 +02:00
Henrik Lissner
de0869c976
Ensure elisp-mode code is lazy loaded
This prevents the unnecessary eager-loading of many autodefs (and
evil-collection-elisp-mode), since the elisp-mode package is always
available at startup.
2018-06-25 15:43:48 +02:00
Henrik Lissner
a1d02749e5
Rethink how evil-collection is (lazy) loaded
This fixes a keybinding precedence issue that prevented users from
customizing evil-collection's keybinds, because evil-collection would
always run last, *after* user customizations. This precedence problem
occurs because evil-collection was lazy loaded haphazardly.

This isn't the most elegant solution, but I can live with it.
2018-06-25 15:39:38 +02:00
Henrik Lissner
2f63c5fa47
Merge pull request #723 from fuxialexander/fix-ivy-fuzzy
Fix disable ivy fuzzy search in counsel-grep and swiper
2018-06-25 15:02:41 +02:00
Henrik Lissner
e3519e82bf
Merge pull request #725 from HaoZeke/fixmdDoc
doctor: Fix error with markdown
2018-06-25 15:01:08 +02:00
Henrik Lissner
106062da0d
Fix ivy posframe
The display function was being set on ivy-display-functions-props. The
correct variable for it is ivy-display-functions-alist.

Reported by randoom in discord.
2018-06-25 14:59:01 +02:00
HaoZeke
595d9e593c
doctor: Fix error with markdown 2018-06-25 17:41:52 +05:30
fuxialexander
6a15db7e00 fix disable ivy fuzzy in swiper and counsel-grep 2018-06-25 14:15:00 +08:00
Henrik Lissner
c8de34fb55
Add +wakatime-hide-filenames option
When enabled, wakatime will obfuscate filenames, hiding file information
from your activity.
2018-06-24 23:23:30 +02:00
Henrik Lissner
3e2b19b5bf
Improve feedback from wakatime-mode setup/init 2018-06-24 23:03:17 +02:00
Henrik Lissner
9ca73ee30e
Fix wakatime api key void-variable errors
Because the api-key was saved to the elisp cache without quotes, the key
was read like a variable symbol. This is why we can't have nice things.

Reported by @freddian
2018-06-24 23:01:04 +02:00
Henrik Lissner
0f90972ba9
tools/wakatime: fix typo in hook name 2018-06-24 22:36:27 +02:00
Henrik Lissner
30f1f8ab0c
tools/wakatime: fix lazy loader
Also the cause of errors during package management, because
after-find-file was being advised too early.

Reported by @freddian
2018-06-24 22:35:26 +02:00
Henrik Lissner
aa70213f87
Fix "Keyword argument :when not one of" error
Occurs when expanding file templates with a :when clause.
+file-templates--expand wasn't anticipating it; throwing that error.
2018-06-24 22:23:09 +02:00
Henrik Lissner
f784ed3cbd
Update set-docset! documentation
And remove redundant documentation for obsolete :docset.
2018-06-24 22:23:09 +02:00
Henrik Lissner
2ad1280e4e
Add set-irc-server! autodef & move :irc setting 2018-06-24 22:23:08 +02:00
Henrik Lissner
6fcc1203cc
Merge pull request #721 from mdssjc/add-pretty-symbols
Add new symbols.
2018-06-24 17:15:50 +02:00
Henrik Lissner
0b437ccae8
Merge pull request #717 from MarkRedeman/circe-keybindings
Add keybindings for circe
2018-06-24 17:15:30 +02:00
Henrik Lissner
14dfc9fad9
Add FIXMEs to def-setting!'s
They will be removed on the 2.1.1 release.
2018-06-24 17:13:23 +02:00
Henrik Lissner
3284356fc2
Move git-commit style settings to hook
+vc|enforce-git-commit-conventions

Also, use fill-column instead of git-commit-fill-column, which magit has
deprecated.
2018-06-24 16:31:14 +02:00
Henrik Lissner
0ee42c1df0
Improve smartparens+web-mode compatibility
+ Enables web-mode's autopairing functionality
+ Prevents duplicate >'s after web-mode autopairing.
+ Leave longer-than-3-character pairs to smartparens (there was only
  <!-- -->)
+ Remove <?p -> <?php | ?> autopairer. Leave that to snippets (web-mode
  doesn't support prefixes longer than 3 letters, and <?php ?> is too
  much of a performance drain to have smartparens support it, so I added
  a "php" snippet that expands to <?php | ?>).
+ Tags now auto-close when you finish typing the opening
  tag. (web-mode-auto-close-style = 2)
2018-06-24 16:31:13 +02:00
Henrik Lissner
c78c6495f1
Apply /* and /** pairs to more modes
Including js, ts, rjsx, rust, all C modes, php, and all css modes (scss,
less, and stylus).

Requested by @ar1a
2018-06-24 16:31:13 +02:00
Henrik Lissner
6e3afb0249
Improve wakatime module; add +wakatime/setup
+ +wakatime/setup prompts for API key, after asking if you want to open a
  browser to the wakatime api-key page.
+ wakatime-api-key is saved to a cache file in doom-cache-dir.
+ Fixed wakatime not starting on the first buffer when passing a file to
  Emacs directly.

Suggested by @freddian
2018-06-24 14:44:09 +02:00
Henrik Lissner
c69b4ab5ee
Use C-n/C-p in macrostep instead of n/p
n/p overrides evil's jump-to-next/previous-search.
2018-06-24 10:35:36 +02:00
Henrik Lissner
69fc80d7cf Revert "Fix evil-escape aborting multiedit too eagerly"
This reverts commit ba1488279b.

This hack is no longer necessary now that syl20bnr/evil-escape#83 was
merged upstream.
2018-06-24 10:34:16 +02:00
Mark Redeman
a8c31db7be
Remove the SPC o I keybinding to open IRC 2018-06-24 00:01:07 +02:00
Marcelo dos Santos
fcbf221267 Add new symbols. 2018-06-23 18:14:01 -03:00
Henrik Lissner
4c4a35ae86
Minor reformatting
It's no big deal. Really.
2018-06-23 22:22:42 +02:00
Henrik Lissner
618358413b
Major refactor of ui/popup
+ Make it pass tests
+ Changes the behavior and arguments of functions passed to :autosave,
  :ttl, and :modeline.
+ Updated the documentation of set-popup-rule! to reflect these changes
+ Phase out map.el usage as per f6dc6ac7
2018-06-23 22:18:44 +02:00
Henrik Lissner
f11bd617cd
Add ui/popup tests (wip) 2018-06-23 22:17:56 +02:00
Henrik Lissner
d78f702401
Update feature/workspaces tests 2018-06-23 22:17:15 +02:00
Henrik Lissner
a0ffc38117
Fix listp errors in eshell when using aliases 2018-06-23 20:29:54 +02:00
Henrik Lissner
81428f5bcf
Fix dante-mode hook #718 2018-06-23 20:02:56 +02:00
Henrik Lissner
031deb7beb
Fix C-k keybind in pass-mode 2018-06-23 20:00:21 +02:00
Henrik Lissner
863fa16bcc
Refactor +workspace/new: use persp-copy
Instead of manually adding buffers to new workspace.
2018-06-23 19:59:17 +02:00
Henrik Lissner
fbf7834d93
Don't delete workspace if visible in another frame
This leaves persp-mode in a semi-broken state.
2018-06-23 19:53:58 +02:00