### Enable hotfuzz completion style Source: https://github.com/axelf4/hotfuzz/blob/master/README.md Add hotfuzz to the completion-styles list to activate the fuzzy matching. ```elisp (setq completion-styles '(hotfuzz)) ``` -------------------------------- ### Compile dynamic module Source: https://github.com/axelf4/hotfuzz/blob/master/README.md Build the optional dynamic module for improved performance using CMake. ```sh cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-march=native && cmake --build build ``` -------------------------------- ### Configure Hotfuzz CMake Project Source: https://github.com/axelf4/hotfuzz/blob/master/CMakeLists.txt Sets up the project environment, locates Emacs dependencies, and defines the shared library build properties. ```cmake cmake_minimum_required(VERSION 3.19) project(hotfuzz C) find_program(EMACS_EXECUTABLE emacs) if(EMACS_EXECUTABLE) file(REAL_PATH ${EMACS_EXECUTABLE} EMACS_EXECUTABLE) set(EMACS_PROGRAM_DIR ${EMACS_EXECUTABLE}/../..) endif() find_path(EMACS_INCLUDE_DIR emacs-module.h HINTS ${EMACS_PROGRAM_DIR} PATHS ${EMACS_ROOT} ENV EMACS_ROOT PATH_SUFFIXES include REQUIRED) set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) add_library(hotfuzz-module MODULE hotfuzz-module.c) set_target_properties(hotfuzz-module PROPERTIES C_STANDARD 11 C_STANDARD_REQUIRED ON PREFIX "" LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}) target_include_directories(hotfuzz-module SYSTEM PRIVATE ${EMACS_INCLUDE_DIR}) target_link_libraries(hotfuzz-module PRIVATE Threads::Threads) ``` -------------------------------- ### Configure Consult tofu characters Source: https://github.com/axelf4/hotfuzz/blob/master/README.md Adjust Consult tofu character settings to avoid encoding issues with dynamic modules. ```elisp (setq consult--tofu-char #x100000 consult--tofu-range #x00fffe) ``` -------------------------------- ### Disable highlighting optimization Source: https://github.com/axelf4/hotfuzz/blob/master/README.md Set the maximum highlighted completions to the largest possible integer to disable the performance-based highlighting limit. ```elisp (setq hotfuzz-max-highlighted-completions most-positive-fixnum) ``` -------------------------------- ### Disable flex in Fido mode Source: https://github.com/axelf4/hotfuzz/blob/master/README.md Use this hook to prevent Fido mode from forcing the use of the flex completion style. ```elisp (add-hook 'icomplete-minibuffer-setup-hook (lambda () (kill-local-variable 'completion-styles))) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.