Commit Graph

24 Commits

Author SHA1 Message Date
Henrik Lissner
3c9b1635ef Bump :completion
DarwinAwardWinner/amx@ccfc92c -> DarwinAwardWinner/amx@b991497
DarwinAwardWinner/ido-completing-read-plus@b9ca256 -> DarwinAwardWinner/ido-completing-read-plus@36a8bb9
Yevgnen/ivy-rich@f8a1f5c -> Yevgnen/ivy-rich@7b9b7b2
abo-abo/swiper@d2891aa -> abo-abo/swiper@1deef76
bbatsov/helm-projectile@2f3a2a0 -> bbatsov/helm-projectile@58123f1
company-mode/company-mode@97cfbc3 -> company-mode/company-mode@88001d7
creichert/ido-vertical-mode.el@5a6e170 -> creichert/ido-vertical-mode.el@b1659e9
emacs-helm/helm@75562ee -> emacs-helm/helm@dbdec63
raxod502/prescient.el@42adc80 -> raxod502/prescient.el@9631db7
sebastiencs/company-box@be37a9a -> sebastiencs/company-box@ec8f446
tumashu/ivy-posframe@83047d4 -> tumashu/ivy-posframe@3132719
tumashu/posframe@efd7ea4 -> tumashu/posframe@3454a4c
yyoncho/helm-icons@dbc5c41 -> yyoncho/helm-icons@5a668ef
2021-02-25 13:59:43 -05:00
Henrik Lissner
664937a3f3
Bump :completion ido
creichert/ido-vertical-mode.el@16c4c1a -> creichert/ido-vertical-mode.el@5a6e170
lewang/flx@17f5c9c -> lewang/flx@647cb2f
2020-10-20 23:25:36 -04:00
Henrik Lissner
c0087ff30e
Bump :completion
DarwinAwardWinner/ido-completing-read-plus@98d3a6e -> DarwinAwardWinner/ido-completing-read-plus@b9ca256
abo-abo/swiper@544e7de -> abo-abo/swiper@a007ba6
bbatsov/helm-projectile@5328b74 -> bbatsov/helm-projectile@08ea358
company-mode/company-mode@6333fc4 -> company-mode/company-mode@1f56bec
emacs-helm/helm@b6db9fb -> emacs-helm/helm@58d1982
emacs-jp/helm-c-yasnippet@65ca732 -> emacs-jp/helm-c-yasnippet@89cc856
raxod502/prescient.el@0f4a89b -> raxod502/prescient.el@3ab7605
sebastiencs/company-box@3814fcb -> sebastiencs/company-box@452f083
tumashu/posframe@093b29a -> tumashu/posframe@c445902
2020-06-17 14:31:23 -04:00
Henrik Lissner
8bf902d5f4
General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
Henrik Lissner
0e851ace9b
Backport bits of CLI rewrite
The rewrite for Doom's CLI is taking a while, so I've backported a few
important changes in order to ease the transition and fix a couple bugs
sooner.

Fixes #2802, #2737, #2386

The big highlights are:

- Fix #2802: We now update recipe repos *before* updating/installing any
  new packages. No more "Could not find package X in recipe repositories".

- Fix #2737: An edge case where straight couldn't reach a pinned
  commit (particularly with agda).

- Doom is now smarter about what option it recommends when straight
  prompts you to make a choice.

- Introduces a new init path for Doom. The old way:
  - Launch in "minimal" CLI mode in non-interactive sessions
  - Launch a "full" interactive mode otherwise.
  The new way
  - Launch in "minimal" CLI mode *only* for bin/doom
  - Launch is a simple mode for non-interactive sessions that still need
    access to your interactive config (like async org export/babel).
  - Launch a "full" interactive mode otherwise.

  This should fix compatibility issues with plugins that use the
  async.el library or spawn child Emacs processes to fake
  parallelization (like org's async export and babel functionality).

- Your private init.el is now loaded more reliably when running any
  bin/doom command. This gives you an opportunity to configure its
  settings.

- Added doom-first-{input,buffer,file}-hook hooks, which we use to queue
  deferred activation of a number of packages. Users can remove these
  modes from these hooks; altogether preventing them from loading,
  rather than waiting for them to load to then disable them,
  e.g. (after! smartparens (smartparens-global-mode -1)) -> (remove-hook
  'doom-first-buffer #'smartparens-global-mode)

  Hooks added to doom-first-*-hook variables will be removed once they
  run.

  This should also indirectly fix #2386, by preventing interactive modes
  from running in non-interactive session.

- Added `doom/bump-*` commands to make bumping modules and packages
  easier, and `doom/bumpify-*` commands for converting package!
  statements into user/repo@sha1hash format for bump commits.

- straight.el is now commit-pinned, like all other packages. We also
  more reliably install straight.el by cloning it ourselves, rather than
  relying on its bootstrap.el.

  This should prevent infinite "straight has diverged from master"
  prompts whenever we change branches (though, you might have to put up
  with it one more after this update -- see #2937 for workaround).

All the other minor changes:

- Moved core/autoload/cli.el to core/autoload/process.el
- The package manager will log attempts to check out pinned commits
- If package state is incomplete while rebuilding packages, emit a
  simpler error message instead of an obscure one!
- Added -u switch to 'doom sync' to make it run 'doom update' afterwards
- Added -p switch to 'doom sync' to make it run 'doom purge' afterwards
- Replace doom-modules function with doom-modules-list
- The `with-plist!` macro was removed, since `cl-destructuring-bind`
  already serves that purpose well enough.
- core/autoload/packages.el was moved into core-packages.el
- bin/doom will no longer die if DOOMDIR or DOOMLOCALDIR don't have a
  trailing slash
- Introduces doom-debug-variables; a list of variables to toggle on
  doom/toggle-debug-mode.
- The sandbox has been updated to reflect the above changes, also:
  1. Child instances will no longer inherit the process environment of
     the host instance,
  2. It will no longer produce an auto-save-list directory in ~/.emacs.d
2020-05-15 01:33:52 -04:00
Kaleb Elwert
6450fa5ade ido: fix up and down keybinds in file dir navigation 2020-05-04 07:16:16 -07:00
Henrik Lissner
af4e347df0
Bump :completion
DarwinAwardWinner/amx@e512e74 -> DarwinAwardWinner/amx@7fb7b87
Yevgnen/ivy-rich@596874d -> Yevgnen/ivy-rich@3f818b2
abo-abo/swiper@64f05f4 -> abo-abo/swiper@9e0803c
company-mode/company-mode@61ddd9a -> company-mode/company-mode@6333fc4
emacs-helm/helm@d978f20 -> emacs-helm/helm@b6db9fb
raxod502/prescient.el@5330773 -> raxod502/prescient.el@0f4a89b
raxod502/prescient.el@5330773 -> raxod502/prescient.el@0f4a89b
sebastiencs/company-box@8fc6168 -> sebastiencs/company-box@3814fcb
tumashu/posframe@e62e584 -> tumashu/posframe@093b29a

We're also transitioning from abbreviated SHA1 hashes to full ones. See
45cdfb125 for why.
2020-04-30 01:29:30 -04:00
Henrik Lissner
c1bfdadc10
Bump :completion
DarwinAwardWinner/ido-completing-read-plus@74861ea -> DarwinAwardWinner/ido-completing-read-plus@98d3a6e
emacs-helm/helm@0181b7e -> emacs-helm/helm@d978f20
raxod502/prescient.el@a194852 -> raxod502/prescient.el@5330773
raxod502/prescient.el@a194852 -> raxod502/prescient.el@5330773
tumashu/ivy-posframe@6d697ff -> tumashu/ivy-posframe@ae9bafe
tumashu/posframe@c15800a -> tumashu/posframe@e62e584

Possibly fixes #2540
2020-04-12 17:53:55 -04:00
Henrik Lissner
fd6b85a7d2
Refactor ido module; add ido-mode-hook 2020-04-06 21:02:55 -04:00
Kaleb Elwert
d5673cb29e Fix and improve ido module
- ido will actually be loaded at startup - I'm hoping there's a better
  way to optimize this.
- ido-sort-mtime-mode was fixed
- Up/Down were added to get closer to
  `(setq ido-vertical-define-keys 'C-n-C-p-up-down-left-right)`
- Faces were re-enabled
- The number of results are now displayed with ido
2020-04-06 17:33:05 -07:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
Henrik Lissner
a3e262c7ac
💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
c795a988e6
Conform many modules to new conventions 2019-07-23 12:30:47 +02:00
Henrik Lissner
149b2617b0
💥 revise hook/var fns naming convention (2/2)
This is second of three big naming convention changes. In this commit,
we change the naming conventions for hook functions and variable
functions:

1. Replace the bar | to indicate a hook function with a -h suffix, e.g.

     doom|init-ui -> doom-init-ui-h
     doom|run-local-var-hooks -> doom-run-local-var-hooks-h

2. And add a -fn suffix for functions meant to be set on variables,
   e.g.

     (setq magit-display-buffer-function #'+magit-display-buffer-fn)

See ccf327f8 for the reasoning behind these changes.
2019-07-22 02:30:38 +02:00
Henrik Lissner
51d3b1b424
💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +02:00
Henrik Lissner
83590d65ba
Refactor/optimize completion/ido module
Ensure initialization only occurs once when ido is first used. Special
steps are needed because ido is automatically loaded at startup by
Emacs.
2018-06-03 15:01:21 +02:00
Carter Charbonneau
cec72fa959 completion/ido: update to use ido-completing-read+ (renamed from ido-ubiquitous) 2018-03-27 10:28:37 -06:00
Henrik Lissner
9d81bc5a8b
Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default.

Addresses #286
2017-12-08 23:14:11 -05: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
5ae94b765c PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES 2017-04-17 02:17:10 -04:00
Henrik Lissner
33c88d4f82 Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
Henrik Lissner
f0adef1b01 Add modules/completion/ido 2017-02-20 00:26:08 -05:00