Giter Site home page Giter Site logo

Comments (9)

felko avatar felko commented on June 6, 2024

Hello!
Did you manage to integrate this configuration inside your .doom.d directory? It's very close from my actual neuron-mode configuration, so it should be usable as is. If you have trouble to figure out where to put those files, here's a more visual explanation that I hope will help you:

+- .doom.d
|--+ modules/tools/neuron (files from the gist)
|  |-- packages.el
|  |-- config.el
|
|-- init.el
|    (doom!
|      ...
|      :tools
|      neuron
|      ...
|    
|-- other files

Then run doom sync (which you can do from emacs with the SPC h r r command). If those files were already set up in this way in your doom-emacs configuration, then your question is probably not that noob. In that case, I'd need to know in more detail what you mean by not being able to make it work on your doom emacs installation. Do you see any kind of error?

from neuron-mode.

ursulogalvan avatar ursulogalvan commented on June 6, 2024

Yes, I integrated neuron-mode into my doom configuration. I get this error: Wrong type argument: sequencep, neuron.

Thank you very much.

from neuron-mode.

ursulogalvan avatar ursulogalvan commented on June 6, 2024

I really, really don't know how, but after compiling my packages this problem was solved. Thank you for answering my question. I finaklly get to use your package and it seem I wasn't wrong: thys software is amazing.

from neuron-mode.

felko avatar felko commented on June 6, 2024

Thanks!
Please reopen this issue if the problem reappears

from neuron-mode.

NightMachinery avatar NightMachinery commented on June 6, 2024

@felko Is it the intended behavior that the user should manually enable neuron-mode on every single zettle file opened, or is my config broken? I already used doom, so I just copied the config code into my private init files, and everything works except this problem of auto-activating neuron-mode for files under the zettle directory.

from neuron-mode.

NightMachinery avatar NightMachinery commented on June 6, 2024

@NightMachinary commented on Jul 29, 2020, 11:37 AM GMT+4:30:

@felko Is it the intended behavior that the user should manually enable neuron-mode on every single zettle file opened, or is my config broken? I already used doom, so I just copied the config code into my private init files, and everything works except this problem of auto-activating neuron-mode for files under the zettle directory.

After reading the sourcecode, I have learnt that this is because a neuron.dhall file is being used to detect if the directory is for zettlecasten. Before learning this, I added my own function:

(defun night/neuron-activator ()
  (interactive)
  (let  ((dir (file-name-directory buffer-file-name)))
    (print "hi")
    (print (getenv "ZETTLE_DIR"))
    (print dir)
    (when (and (eq major-mode 'markdown-mode) (string-prefix-p (getenv "ZETTLE_DIR") dir))
      (neuron-mode)
      )
    )
  )

(add-hook 'markdown-mode-hook #'night/neuron-activator)

from neuron-mode.

felko avatar felko commented on June 6, 2024

After reading the sourcecode, I have learnt that this is because a neuron.dhall file is being used to detect if the directory is for zettlecasten

Yeah, having a neuron.dhall isn't mandatory in neuron zettelkastens, but is necessary when dealing with multiple zettelkastens in neuron-mode.
FYI this was explained in the README, but maybe the README goes a little bit too exhaustively through the features, tell me what you think. Should I shorten the README and go over the details in the wiki?

from neuron-mode.

NightMachinery avatar NightMachinery commented on June 6, 2024

After reading the sourcecode, I have learnt that this is because a neuron.dhall file is being used to detect if the directory is for zettlecasten

Yeah, having a neuron.dhall isn't mandatory in neuron zettelkastens, but is necessary when dealing with multiple zettelkastens in neuron-mode.
FYI this was explained in the README, but maybe the README goes a little bit too exhaustively through the features, tell me what you think. Should I shorten the README and go over the details in the wiki?

@felko I think it’s a good idea to explicitly mention that neuron.dhall is what activates neuron-mode on md files.

from neuron-mode.

felko avatar felko commented on June 6, 2024

Got it: 9300262
Thanks

from neuron-mode.

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.