use corfu
This commit is contained in:
parent
a0500746f4
commit
d7e51e32d5
5 changed files with 34 additions and 975 deletions
|
|
@ -1,20 +1,13 @@
|
|||
;;; languages/elisp -- summary -*- lexical-binding: t; -*-
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(require 'icejam-blocking)
|
||||
(require 'icejam-prog-mode)
|
||||
(require 'icejam-transient)
|
||||
|
||||
;; ;; Dash is a package that creates terse and more natural to me functions to
|
||||
;; ;; do basic things in Elisp.
|
||||
(declare-function elpaca-installed-p "elpaca")
|
||||
(unless (elpaca-installed-p 'dash)
|
||||
(use-package dash :ensure t :defer t))
|
||||
|
||||
;; ;; Adds pseudomodal editing for lisp.
|
||||
(unless (elpaca-installed-p 'lispy)
|
||||
(use-package lispy :ensure t :defer t))
|
||||
(use-package smartparens :ensure t :defer t
|
||||
:commands (smartparens-mode))
|
||||
|
||||
(declare-function column-enforce-n "column-enforce-mode" (number))
|
||||
(add-to-list 'auto-mode-alist '("/Eask\\'" . emacs-lisp-mode))
|
||||
|
|
@ -33,20 +26,23 @@
|
|||
(add-to-list
|
||||
'icejam-language-transient-alist '(emacs-lisp-mode . icejam-elisp-lang-menu))
|
||||
|
||||
(declare-function lispy-mode "lispy")
|
||||
(defun icejam-activate-emacs-lisp-mode ()
|
||||
"Goodies for editing Emacs files."
|
||||
(icejam-set-indent 2) ;; Default indentation of 2 characters
|
||||
|
||||
;; Default indentation of 2 characters
|
||||
(icejam-set-indent 2)
|
||||
|
||||
;; Use 80 char limit.
|
||||
(column-enforce-n 80)
|
||||
|
||||
(dash-fontify-mode t)
|
||||
(lispy-mode t)
|
||||
;; Parents
|
||||
(smartparens-mode t)
|
||||
|
||||
(setq-local completion-at-point-functions '(yasnippet-capf
|
||||
elisp-completion-at-point
|
||||
cape-dabbrev
|
||||
cape-file
|
||||
cape-elisp-symbol)))
|
||||
(setq-local completion-at-point-functions
|
||||
(list (cape-capf-super #'elisp-completion-at-point #'yasnippet-capf)
|
||||
#'cape-dabbrev
|
||||
#'cape-file
|
||||
#'cape-elisp-symbol)))
|
||||
|
||||
(add-hook 'emacs-lisp-mode-hook 'icejam-activate-emacs-lisp-mode)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue