Commit Graph

36 Commits

Author SHA1 Message Date
7d3ffdff06 Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
1490b9ec8d Prioritize private snippets over built-in ones
In the case of snippet conflicts, you'd normally be prompted to select
which snippet you want. Built-in snippets are now disregarded if
conflicting private ones exist.

This makes it easier for users to add overriding snippets to
DOOMDIR/snippets.
2018-08-11 16:48:31 +02:00
4941e327f4 General refactor for readability
+ Removes redundant/unhelpful comments
+ Renames functions, hooks and variables to be self-documenting
+ Use add-to-list to ensure idempotency (and is more performant)
2018-07-09 15:33:31 +02:00
8f76ee9a8a Refactor feature/snippets
+ Don't clear yas-minor-mode-map; the default keybinds can be useful,
  esp to non-evil users.
+ Moved +snippets|enable-project-modes hook to autoloads file.
+ Reformat yasnippet config.
2018-06-19 13:49:15 +02:00
16b341e605 Move aya-persist-snippets-dir to doom-etc-dir 2018-06-19 12:01:51 +02:00
1d9ae834f2 Minor refactors & docstring revision
These are not the refactors you are looking for.
2018-06-04 21:17:49 +02:00
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
18b48cc841 feature/snippets: minor refactor 2018-05-08 01:01:21 +02:00
183b061351 feature/snippets: add doom-private-dir/snippets to yas-snippet-dirs 2018-04-03 05:45:45 -04:00
17d206a28f feature/snippets: remap yas-insert-snippet instead
Rather than binding directly to +snippets/expand-on-region
2018-03-13 01:27:53 -04:00
3cbddbfd88 Generalize +evil-esc-hook into doom-escape-hook
This lets vanilla Emacs users in on having a universal "escape" key.
2018-01-06 02:38:39 -05:00
9c9e9b2b59 feature/snippets: remove monkey patch (fix merged upstream) 2018-01-04 16:14:51 -05:00
edc53706ba feature/snippets: temporarily monkey-patch regression in yasnippet
See https://github.com/joaotavora/yasnippet/issues/883
2018-01-02 20:36:20 -05:00
50c1ad0875 Fix esc not exiting snippets
Caused by a custom ESC keybind overriding +evil-esc-hook
2018-01-01 22:42:46 -05:00
3708d76f51 feature/snippets: use default yas-snippet-dirs (harmless)
This is often overwritten by other modules anyway.
2018-01-01 16:17:24 -05:00
9fa60965a8 feature/snippets: remove evil hacks (experimental)
They don't seem to be necessary anymore. More testing is required.
2017-12-27 18:20:15 -05:00
16df33a5b1 feature/snippets: simplify var config 2017-12-27 18:19:56 -05:00
a24a3ef292 Fix unindexed file-templates on first load of yasnippet 2017-10-23 20:07:54 +02:00
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
baad7953bf Breaking change: rewrite add-transient-hook!
HOOK is now evaluated. Hooks should be quoted (and functions
sharp-quoted).

This also fixes commit 0150f78e.
2017-06-05 16:43:14 +02:00
fbe782df22 Heavily redesign keybinding design
+ SPC and SPC m as leader/localleader (spacemacs-ey)
+ Move all custom keybindings to private +bindings.el file
+ Redesign+rearrange keybindings
2017-05-28 02:48:20 +02:00
cce294fcf6 feature/evil: refactor evil-force-normal-state advice into +evil-esc-hook 2017-05-07 19:12:48 +02:00
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
3a43e2fcfa feature/snippets: remove redundant hooks 2017-04-05 15:54:54 -04:00
95e0c0b8b8 feature/snippets: don't hijack TAB in other modes (fix #45) 2017-04-05 15:54:36 -04:00
290cd95a4c feature/snippets: clean up yas-keymap bindings 2017-03-23 15:48:48 -04:00
501ccbdb3d feature/snippets: enable nested snippets 2017-03-23 15:48:05 -04:00
f1ac764ccb feature/snippets: autoload snippet-mode 2017-03-23 00:29:14 -04:00
29e844c92e feature/snippets: refactor, cleanup & stability tweaks 2017-03-22 17:43:05 -04:00
f380cff5c4 feature/snippets: use evil-visual-{beginning,end} in +snippets|yas-before-expand 2017-03-22 04:58:09 -04:00
22e3baf184 Add minor-mode-specific snippets & company-dict dictionaries 2017-03-02 18:28:46 -05:00
2d190fe0c5 Add & use add-transient-hook! macro 2017-03-02 01:43:59 -05:00
122ddc5a12 Refactor feature/file-templates (+ later yas-reload-all) 2017-02-28 17:58:52 -05:00
33c88d4f82 Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
aaf2314d9d Update modules/feature/snippets 2017-02-20 00:26:08 -05:00
8c2b90b3af Add feature/snippets 2017-02-20 00:26:07 -05:00