Comments (3)
I have the same problem with Polymode 20230317.1218 and Emacs 29.2.50.
Invoke emacs with -q option, and eval below:
(add-to-list 'load-path "~/.emacs.d/versions/29.2/elpa/polymode-20230317.1218")
(require 'polymode)
(define-innermode poly-org-innermode
:mode 'org-mode
:head-matcher "^[*]+ .*"
:tail-matcher "^[^ \n\t*#]\\|\\'"
:head-mode 'body
:tail-mode 'host)
(define-hostmode poly-fundamental-hostmode
:mode 'fundamental-mode)
(define-polymode poly-fundamental-mode
:hostmode 'poly-fundamental-hostmode
:innermodes '(poly-org-innermode))
Then creat a buffer with fundamental-modeοΌ
Yank this text:
* 2024-01-29
[[https://github.com/polymode/polymode][polymode]] is awesome!
M-x poly-fundamental-mode becomes:
* 2024-01-29
is awesome!
link looks invisible. If you cut and paste the invisible text to another buffer,
polymode becomes awesome again π
from polymode.
FYI that works for me!
(advice-add 'poly-org-mode
:before
(lambda () (setq buffer-invisibility-spec
(with-temp-buffer
(org-mode)
buffer-invisibility-spec))))
I'm sure there is a better way to do this, e.g. to figure out what's going on with buffer-invisibility-spec
, but this works! Thank you @yoshinari-nomura !
from polymode.
I found that org-mode uses buffer-invisibility-spec
to control the appearance of invisible text. Polymode introduces buffer-invisibility-spec
from host into inner.
I think host needs to setup buffer-invisibility-spec
as that of org-mode.
Eval below before M-x poly-fundamental-mode in host buffer works for me.
(setq buffer-invisibility-spec
(with-temp-buffer
(org-mode)
buffer-invisibility-spec))
from polymode.
Related Issues (20)
- Reproducible error: stuck in latex-mode
- Starting polymode with lsp, makes the cursor to jump to the end of buffer HOT 10
- can't find polymode via package-install? HOT 1
- electric-indent-mode
- How to run a function is indirect buffers with the same major mode only?
- Typescript-xml polymode
- Setting mode file local variable to polymode applies itself recursively infinitely until cancelled
- Background Adjustment when Background Unspecified
- polymode creates additional [web] buffer
- Interaction with nix-mode: font-lock broken HOT 4
- Chunks not following automatic Emacs switch to light/dark theme HOT 5
- Polymode, Poly-COMEEGA and COMEEGA (Collaborative Org Mode Enhanced Emacs Generalized Authorship)
- inner mode indentation not works on the first line after head mark
- Polymode does not work in org-edit-special
- eglot sees the whole outer buffer content HOT 3
- hs-hide-all gives unbalanced parentheses error when it shouldn't in some Rnw buffers
- Inconsistent font size in heads
- Beginning of the Polymode buffer is ignored by flymake HOT 1
- quoted backslash in polymode chunks breaks font-locking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polymode.