Commit Graph

18 Commits

Author SHA1 Message Date
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