Comments (2)
I don't use org-mode, you can add some check condtion in function lsp-bridge-monitor-after-change to avoid lsp-bridge start in org-babel-tangle
from lsp-bridge.
Hello, I haven't checked back on this issue for quite a while now. I had a different approach to resolving this issue. I haven't checked on lsp-bridge-monitor-after-change
, but I decided to have a shell script that will run a minimal emacs instance specifically for tangling the code.
I have short script called org-tangle-file
#!/usr/bin/env bash
set -e
emacs --batch -l org --eval "(org-babel-tangle-file \"$1\")"
Then I write a callable in emacs that will run that script within emacs
(defun tangle-config-org ()
"Callable that runs `org-tangle-file' script"
(interactive)
(shell-command (concat "org-tangle-file "
(expand-file-name "config.org" doom-user-dir))))
Finally, I have a local variable set up at EOF of my config.org
that will add tangle-config-org
into after-save-hook
.
* Local Variable
# Local Variables:
# eval: (add-to-list 'after-save-hook 'tangle-config-org)
# End:
That way every time I save my config.org
there will be a lean and minimal instance of emacs running just to tangle the file. I believe this is a more better approach, as it is more modular and the amount of package that I have installed on my setup won't affect the tangling process. For I find, through my experience, if it was not lsp-bridge
there are some other package that will intrude into the tangling operation.
Although, still at the same spirit, having packages needlessly intruding into operation where it is not supposed to be would be ideal.
Cheers,
PS. As in my case it is somewhat solved, even with different approach from the proposed one. I am willing to have this issue closed by @manateelazycat. But if someone else have a different and more suitable, package level, approach. I believe it is also swell to have the discussion going.
from lsp-bridge.
Related Issues (20)
- java 多个工程代码跳转的问题 HOT 5
- markdown default lang sever is incorrect HOT 1
- [Feature-Request]/Question: Tree-like view of symbols from lsp-bridge HOT 3
- vscode-html-language-server日志返回candidates为0 HOT 8
- diagnostic功能无法显示整个project的异常 HOT 3
- 在启用auto-insert-mode之后,在打开新.sh文件时会出错 HOT 1
- How to setup for lisp mode? HOT 2
- Tailwindcss and Eslint working with javascriptreact but not typescriptreact. HOT 1
- Support macro expand for rust HOT 6
- auto-completed content comes to end of the line HOT 6
- [Question] Is it possible to enable plugins for pylsp? HOT 1
- 本地文件跳转报错: Forbidden reentrant call of Tramp HOT 3
- Segmentation error in terraform-ls
- completion not working on windows with doomemacs HOT 2
- Submit to GNU ELPA HOT 1
- Rust mode does not show expected diagnostic info HOT 1
- Win10行安装后报错: No compression program defined HOT 1
- completion word from a file HOT 4
- basedpyright_ruff issue HOT 1
- dart中import无法补全库名称 HOT 8
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 lsp-bridge.