help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static-if problem when using corfu


From: Heime
Subject: Re: static-if problem when using corfu
Date: Sat, 07 Dec 2024 10:47:40 +0000





Sent with Proton Mail secure email.

On Saturday, December 7th, 2024 at 8:43 PM, Tassilo Horn <tsdh@gnu.org> wrote:

> Heime via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org 
> writes:
> 
> > Am having a go at corfu, but am getting
> > 
> > Lisp error: (void-function static-if)
> 
> 
> It looks like you use an emacs < 30 and the compat-30 library is not
> installed although that's a declared dependency of corfu.

I am using 

GNU Emacs 30.0.50 of 2023-07-20

(build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version 1.15.10)
 
> --8<---------------cut here---------------start------------->8---
> 
> ;;; corfu.el --- COmpletion in Region FUnction -- lexical-binding: t --
> 
> ;; Copyright (C) 2021-2024 Free Software Foundation, Inc.
> 
> ;; Author: Daniel Mendler mail@daniel-mendler.de
> 
> ;; Maintainer: Daniel Mendler mail@daniel-mendler.de
> 
> ;; Created: 2021
> ;; Version: 1.5
> ;; Package-Requires: ((emacs "28.1") (compat "30"))
> ;; URL: https://github.com/minad/corfu
> ;; Keywords: abbrev, convenience, matching, completion, text
> --8<---------------cut here---------------end--------------->8---
> 
> 
> How did you install it? - Tassilo

>From source code, requiring the library and 

(defun corfu-launch ()
  "Place 'corfu feature in a ready operational state."

  (setq corfu-auto t)
  (setq corfu-quit-no-match 'separator)

  (add-hook 'prog-mode-hook 'corfu-mode)

  (global-corfu-mode))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]