Code Monkey home page Code Monkey logo

Comments (3)

ekaschalk avatar ekaschalk commented on June 11, 2024

You need to define the config/init-cdlatex, config/init-org-brain, ... functions in the layer making a call to use-package, in addition to adding it to the config-packages variable, see outshine's setup for example.

The warning is telling you that the layer isn't owning the package, and no other layer does, so it doesn't get installed.

from .spacemacs.d.

yubrshen avatar yubrshen commented on June 11, 2024

Thanks for your help! Yes following your instruction now I added the following:

(defun config/init-cdlatex ()
  (use-package cdlatex
    :after auctex org
    :init
    (progn
      (load "~/programming/emacs-lisp/texmathp.el")
      (load "~/programming/emacs-lisp/org-cdlatex-try-tab/org-cdlatex-try-tab.el")
      ;; the command =C- SHIFT TAB= for trigger cdtalx abbrev expansion in org-mode
      ;; This is my private setup.

      ;; enable CDLaTex minor-mode for entering math (equations, or symbols)
      (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
      )))

Now there is no more complaint against missing cdlatex. But I noticed that cdlatex needs texmathp.el, which is not a package. So I tried to directly load it in the init section, but it seems that it didn't work. I had to manually load it to make it available.

Another issue is that the last add-hook seemed didn't have the effect. I also had to manually enable the minor mode org-cdlatex-mode

Thanks again!

from .spacemacs.d.

yubrshen avatar yubrshen commented on June 11, 2024

Actually, after I removed auctex in:afterclause, it all worked as expected now.
(Initially, I was hoping to install auctex in order to have texmathp, but it didn't work, and I solved the problem by just downloading a private copy of texmathp.el)

from .spacemacs.d.

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.