Commit graph

20 commits

Author SHA1 Message Date
Henrik Lissner
e8b9c7dba7
feature/jump: remove gxref + commented out ggtags config 2017-12-26 19:26:59 -05:00
Henrik Lissner
48539dacbc
feature/jump: add {ivy,helm}-xref 2017-12-26 19:26:42 -05:00
Henrik Lissner
76a4ae459d
Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05: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
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
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
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
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