Files
.emacs.d/modules/completion/siren-auto-complete.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
2025-06-29 12:23:03 +01:00

38 lines
885 B
EmacsLisp

;;; siren-auto-complete.el --- jimeh's Emacs Siren: auto-complete configuration. -*- lexical-binding: nil; -*-
;;; Commentary:
;; Basic configuration for auto-complete.
;;; Code:
(require 'siren-flyspell)
(use-package auto-complete
:general
(:keymaps 'ac-completing-map
"RET" 'ac-complete
"C-m" 'ac-complete
"C-s" 'ac-isearch
"C-n" 'ac-next
"C-p" 'ac-previous)
:custom
(ac-auto-show-menu 0.2)
(ac-auto-start 3)
(ac-delay 0.05)
(ac-menu-height 15)
:config
(ac-flyspell-workaround)
;; Auto-complete when indenting.
(defadvice indent-for-tab-command (around ac-before-indent activate)
"Call `auto-complete' if text was recently entered."
(if (ac-trigger-command-p last-command)
(auto-complete)
ad-do-it)))
(provide 'siren-auto-complete)
;;; siren-auto-complete.el ends here