Giter Club home page Giter Club logo

Comments (6)

SebastianMeisel avatar SebastianMeisel commented on July 21, 2024

Hello,

I don't quite understand the problem yet. I have

(use-package journalctl-mode
  :ensure
  )

in my init.el and all functions are provided. Is that not the case with you? What version of Emacs are you running?
Please give a little more detail.

Thanks for your feedback

Sebastian

from journalctl-mode.

canatella avatar canatella commented on July 21, 2024

I'm on 27.1. I guess there is something in your config that is triggering the loading of the file because as soon as one calls journalct-mode the functions are loaded. I reproduced it with the Emacs sandbox script here https://github.com/alphapapa/emacs-sandbox.sh which will start Emacs and install journalctl-mode with a minimal configuration:

emacs-sandbox.sh -i journalctl-mode

Then try M-x journalctl-unit, it won't work because the function is not marked with the ;;;###autoload and so Emacs doesn't know about it until it has properly loaded the library. Have a look at https://www.gnu.org/software/emacs/manual/html_node/elisp/Autoload.html and https://www.gnu.org/software/emacs/manual/html_node/elisp/When-to-Autoload.html#When-to-Autoload if you are unsure what I'm talking about ;)

from journalctl-mode.

SebastianMeisel avatar SebastianMeisel commented on July 21, 2024

Hello,

I just uploaded the fix. I hope it works now as intended. Would appreciate your feedback.

from journalctl-mode.

canatella avatar canatella commented on July 21, 2024

Just had a look at the patch and it seems you just added journalctl-boot. I tested and indeed now only the journalctl-boot is known. You need to add the ;;;###autoload in front of each interactive function you'd like to be available. so

;;;###autoload
(defun ...)

;;###autoload
(defun ...)

for each of journalctl-boot, journalctl-unit, journalctl-user-unit and journalctl-mode

from journalctl-mode.

SebastianMeisel avatar SebastianMeisel commented on July 21, 2024

Okay, I hope that I got I now.

from journalctl-mode.

canatella avatar canatella commented on July 21, 2024

Yes, just tested I've got all the 4 functions available now! Thanks for taking the time to add this and for writing this package :)

from journalctl-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.