Commit graph

14 commits

Author SHA1 Message Date
Henrik Lissner
c2bb5a0951
Fix dumb-jump integration for +jump/definition, take 2 #227 2017-11-14 01:10:14 +01:00
Henrik Lissner
936e3d8dcb
Remove debug code in +jump/definition 2017-11-07 12:05:54 +01:00
Henrik Lissner
4c3f5e8cc2
Fix dumb-jump integration for +jump/definition
Addresses #227, #256
2017-11-05 22:12:28 +01:00
Henrik Lissner
6b9849fd57
Add conditional autoload/compile cookies #229 2017-11-05 01:16:35 +01:00
Amos Bird
1f87eb4a5c Fix dump jump local advice
Targeting https://github.com/hlissner/doom-emacs/issues/227
2017-10-16 02:05:05 -05:00
Henrik Lissner
c3398e6afc
New jump command: +jump/online-select 2017-10-07 01:19:24 +02:00
Henrik Lissner
dd58479a18
New option: +jump-search-browser-fn 2017-09-28 18:06:07 +02:00
Henrik Lissner
c31167d747
Generalize +jump/online #140
+ Now uses selection if region is active. Prompts for the query
  otherwise, with the thing at point as the initial input.
+ On first use, prompts for provider. On consecutive uses, reuses
  previous provider. If universal argument is supplied, force the prompt
  to appear.
2017-07-27 19:09:33 +02:00
Henrik Lissner
6a5bd216e5
Appease byte-compiler senpai 2017-07-14 18:19:08 +02:00
Henrik Lissner
822c78554f
destructuring-bind => cl-destructuring-bind 2017-06-25 02:04:50 +02:00
Henrik Lissner
bc3aee2a4f
Replace :xref-backend setting with :jump
Which takes :definitions, :references, :documentation and :xref-backend.
Each accepts a function that will jump to definitions, references, and
documentation respectively.

If a major-mode has an :xref-backend, you don't need :definitions or
:references.
2017-06-19 00:32:45 +02:00
Henrik Lissner
c7254e7bdc
Major optimization refactor, across the board
+ enable lexical-scope everywhere (lexical-binding = t): ~5-10% faster
  startup; ~5-20% general boost
+ reduce consing, function calls & garbage collection by preferring
  cl-loop & dolist over lambda closures (for mapc[ar], add-hook, and
  various cl-lib filter/map/reduce functions) -- where possible
+ prefer functions with dedicated opcodes, like assq (see byte-defop's
  in bytecomp.el for more)
+ prefer pcase & cond (faster) over cl-case
+ general refactor for code readability
+ ensure naming & style conventions are adhered to
+ appease byte-compiler by marking unused variables with underscore
+ defer minor mode activation to after-init, emacs-startup or
  window-setup hooks; a customization opportunity for users + ensures
  custom functionality won't interfere with startup.
2017-06-09 00:47:45 +02:00
Henrik Lissner
61ad485ae3 Add :lookup & rewrite +jump/online 2017-05-21 15:10:49 +02:00
Henrik Lissner
d5d0f26c09 Add :gblame & :grevert ex commands 2017-05-21 15:10:49 +02:00