Coder Social home page Coder Social logo

Comments (5)

lynlevenick avatar lynlevenick commented on June 26, 2024

I had to (require 'map) before ctrlf-mode could complete successfully.

from ctrlf.

raxod502 avatar raxod502 commented on June 26, 2024

@lynlevenick that is very puzzling given the following line of code

https://github.com/raxod502/ctrlf/blob/814291e8dbb0c31866d95ae72667e10d48057487/ctrlf.el#L37

from ctrlf.

raxod502 avatar raxod502 commented on June 26, 2024

@Jawabiscuit the following init-file works for me and should be sufficient to enable all features, can you see if there is something else in your configuration interfering?

(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(straight-use-package 'use-package)
(use-package ctrlf
  :straight (:host github :repo "raxod502/ctrlf")
  :defer t
  :init

  (ctrlf-mode +1))

from ctrlf.

Jawabiscuit avatar Jawabiscuit commented on June 26, 2024

@raxod502, thanks, :defer t and :init seem to do the trick. I'm not an expert at when to use init vs config so I though config should work, however I didn't think about defer.

from ctrlf.

raxod502 avatar raxod502 commented on June 26, 2024

I recommend setting use-package-always-defer unless you have a very strong reason not to. The default behavior is extremely hard to predict and almost always obstructs understanding of the control flow.

from ctrlf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.