elisp/javascript-init.el
author Luke Hoersten <luke@hoersten.org>
Thu, 02 Oct 2025 09:50:40 -0500
changeset 105 e45e60614994
parent 74 1ec54926890f
permissions -rw-r--r--
Moved from ido and smex to vertico, orderless, consult, marginalia for auto complete. Packages updated: - Removed: flx-ido, smex - Added: vertico, orderless, consult, marginalia Configuration changes: - vertico-mode replaces ido-mode for completion UI - orderless provides fuzzy matching (replaces flx-ido) - marginalia-mode adds helpful annotations - consult-buffer replaces default buffer switching (better than ido) - consult-ripgrep replaces plain rg command (adds preview) - consult-yank-pop on M-y (enhanced kill-ring browsing) Your keybindings: - M-x now uses vertico (no special binding needed) - C-x b → consult-buffer (enhanced) - C-c g → consult-ripgrep (with live preview) - M-y → consult-yank-pop (browse kill ring) Please enter the commit message for your changes. Lines starting
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
71
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     1
;; ~/.emacs.d/elisp/javascript-init.el
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     2
;; Luke Hoersten <[email protected]>
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     3
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     4
;; Require packages
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     5
(require 'package-require)
74
1ec54926890f Added an unused heml-init.el
Luke Hoersten <Luke@Hoersten.org>
parents: 71
diff changeset
     6
(package-require '(auto-complete ac-js2 js2-mode json-mode))
71
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     7
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     8
(require 'auto-complete-config)
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
     9
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    10
;;; js2-mode
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    11
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    12
(add-hook 'js2-mode-hook 'ac-js2-mode)
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    13
(setq-default ac-js2-evaluate-calls t)
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    14
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    15
(message "Loading javascript-init...done")
b5976ed7311a Big updates to haskell-mode stuff.
Luke Hoersten <Luke@Hoersten.org>
parents:
diff changeset
    16
(provide 'javascript-init)