Coder Social home page Coder Social logo

Comments (2)

JxJxxJxJ avatar JxJxxJxJ commented on June 8, 2024
  • These are the modules I expect to be changing the writeroom experience overall:

  • My modus operandi is copying and pasting more and more until something breaks, in this case everything that interfered (or seemed to) with the writeroom experience is already copied. Which since up until now no errors meant it worked, I got confused.

  • Behaviour-wise it's a little bit tricky. I'll try to explain. As I said everything seems to be loaded but not working. When in a normal org file the hook that triggers org-modern seems to work. (Notice how the modeline is slightly shifted too much to the right, that happens sometimes when getting in and out of Zen mode, not really reproducible.)
    image
    Here though, If I press SPC t z or SPC t Z or M-x writeroom-mode
    image
    Currently it displays things like this. Org-modern 'stars' are in some headings, text overall did not get centered (it even got less left margin)
    image
    Fonts seems to be okay, even though it's hard to compare due to the still weird context.

Oh and what's the weirdest, when I'm in zen/writeroom-mode if I press / (or in any way change the focus to the minibuffer) it suddenly seems to try to work (it's still bugged, look at the end of the lines)
image
image

  • For overall troubleshooting I've been just cutting lines until things worked as inteded without errors. But not I even played with the Writeroom module since it seems there the zen-mode and write-room changes occur, but I did it without success.

from emacs-config.

JxJxxJxJ avatar JxJxxJxJ commented on June 8, 2024

Deleting Language configuration -> Plaintext -> Margin without line numbers now made it somewhat work

#+begin_src emacs-lisp
(defvar +text-mode-left-margin-width 1
"The left-margin-width' to be used in text-mode' buffers.")

(defun +setup-text-mode-left-margin ()
(when (and (derived-mode-p 'text-mode)
(eq (current-buffer) ; Check current buffer is active.
(window-buffer (frame-selected-window))))
(setq left-margin-width (if display-line-numbers
0 +text-mode-left-margin-width))
(set-window-buffer (get-buffer-window (current-buffer))
(current-buffer))))

#+end_src
Just after opening config.org
image
Now SPC t z
image

from emacs-config.

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.