Code Monkey home page Code Monkey logo

Comments (9)

refaelsh avatar refaelsh commented on June 11, 2024 1

,,,
(use-package org-tree-slide
:custom
(org-tree-slide-cursor-init)
(org-image-actual-width nil))
(general-nmap "p" 'org-tree-slide-mode)
(general-nmap "ro" 'read-only-mode)
(define-key org-tree-slide-mode-map (kbd "C-") 'org-tree-slide-move-next-tree)
(define-key org-tree-slide-mode-map (kbd "C-") 'org-tree-slide-move-previous-tree)
,,,

from org-tree-slide.

refaelsh avatar refaelsh commented on June 11, 2024 1

Maybe it's got something to do with the particular mode line I am using? I am using Doom mode line.

from org-tree-slide.

refaelsh avatar refaelsh commented on June 11, 2024 1

When I am adding "doom-modeline-minor-modes" to my config, I can now see slide numbers, but I also see all the minor modes and that a lot and creates a lot of noise. Is there some other solution, please?

from org-tree-slide.

refaelsh avatar refaelsh commented on June 11, 2024 1

Maybe it's got something to do with the particular mode line I am using? I am using Doom mode line.

Just wanna clarify, I don't use Doom Emacs, I use Vanilla Emacs and use the doom line as a package.

from org-tree-slide.

takaxp avatar takaxp commented on June 11, 2024

It depends on context. Could you show your configuration regarding to "org-tree-slide-mode"?

from org-tree-slide.

takaxp avatar takaxp commented on June 11, 2024

It does not reproduce in my environment with your configuration...
Screenshot_2023-05-13_at_1_19_11

from org-tree-slide.

takaxp avatar takaxp commented on June 11, 2024

According to the official page of doom-modeline, enabling doom-modeline-minor-modes could work for Doom user. Another approach of setting global-mode-string may also work but in that case org-tree-slide.el shall be updated to support that.

from org-tree-slide.

takaxp avatar takaxp commented on June 11, 2024

A solution to this issue is here. I hope this code can be useful for doom-modeline user like you and also Doom Emacs user.

(defun my-add-slide-number ()
  (add-to-list 'global-mode-string
               '(:eval (concat "" (org-tree-slide--update-modeline) " "))))
(defun my-remove-slide-number ()
  (setq global-mode-string
        (remove '(:eval (concat "" (org-tree-slide--update-modeline) " "))
                global-mode-string)))

(add-hook 'org-tree-slide-play-hook #'my-add-slide-number)
(add-hook 'org-tree-slide-stop-hook #'my-remove-slide-number)

from org-tree-slide.

refaelsh avatar refaelsh commented on June 11, 2024

That solved the issue. Thank you very much.

from org-tree-slide.

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.