Commit graph

29 commits

Author SHA1 Message Date
Henrik Lissner
76a4ae459d
Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
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
a4ddb1bc9b
General minor refactor + cleanup 2017-09-28 18:19:15 +02:00
Henrik Lissner
dd58479a18
New option: +jump-search-browser-fn 2017-09-28 18:06:07 +02:00
Henrik Lissner
24f59d4b0e
Add more +jump/online providers 2017-09-28 18:05:43 +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
3bf876f44e
Add documentation to :jump setting 2017-07-19 00:24:57 +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
30402495fe General refactor + cleanup 2017-06-05 12:35:51 +02:00
Henrik Lissner
33a87cec5b feature/jump: recenter after dumb-jump 2017-05-26 20:22:45 +02:00
Henrik Lissner
ee44a1c572 dumb-jump-aggressive = nil 2017-05-23 21:32:07 +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
Henrik Lissner
546c672f8a Add gxref: ggtags backend for xref 2017-05-21 15:10:33 +02:00
Henrik Lissner
3b56f41c20 Better ag/rg fallbacks for +jump/definition 2017-05-21 15:10:33 +02:00
Henrik Lissner
b03f2cbf48 General refactor & cleanup + update TODO 2017-05-15 20:44:25 +02:00
Henrik Lissner
eab2a343a3 feature/jump: recenter after counsel-grep-post-action-hook 2017-05-10 08:41:13 +02:00
Henrik Lissner
0e7254d312 General cleanup + refactor 2017-04-17 02:20:07 -04:00
Henrik Lissner
e204df3c05 Replace obsolete functions/commands 2017-04-17 02:19:20 -04:00
Henrik Lissner
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
Henrik Lissner
9c4ae61476 Add modules/feature/jump (WIP) 2017-03-15 22:59:49 -04:00