Comments (10)
I managed to discover the actual cause of the issue. It was solaire-mode
. It also turns out that this also happens with vanilla emacs (knowing the actual cause made me able to reproduce it). So closing this, sorry for the trouble :(.
from emacs.
Some things to note
-
The config for company-mode used by doom Emacs is at https://github.com/hlissner/doom-emacs/blob/develop/modules/completion/company/config.el. Only the first
use-package!
block should be relevant. Note that by default(featurep! +childframe)
isnil
and(featurep! :editor evil)
is set tot
, so the issue might lie in the:config
part. -
According to Doom docs the default is not to use childframes, but rather tooltips & overlays.
+childframe
Enables displaying completion candidates in a child frame, rather than an overlay or tooltip (among with other UI enhancements). This requires GUI Emacs 26.1+ and is incompatible with the =+tng= flag
- Using actual childframes using the doom module flag
+childframe
(I think this uses company-box) fixes this issue.
from emacs.
@A6GibKm could you explain what each of the first two screenshots is?
from emacs.
They are the tooltip invoked by company-mode on two different themes.
from emacs.
If I understand correctly, doom is configuring for company-posframe when it's not expected to be.
I'm not sure if we are setting something incorrectly, or if this is a doom issue.
does this occur on mainline? if so, we might be advertising a feature incorrectly
from emacs.
This is indeed something that happens due to doom's config, but it does not happen using vanilla emacs 27 + doom, so ultimately there is different (unexpected) behaviour in pgtk.
What I have not yet tested is if this is related to nativecomp as I haven't tested pgtk without it for a long while.
from emacs.
@A6GibKm
I did:
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/doom
~/doom/bin/doom install
and saved the above config as ~/.emacs
, did ./doom/bin/doom run
, and got an error:
Could you give me step-by-step guide to reproduce?
from emacs.
The idea is that you should install doom to either ~/.emacs.d
or ~/.config/emacs
so its init file gets loaded first. In this case your .emacs
file is getting loaded.
Also personal config files for it should go on ~/.config/doom
(~/.config/doom/config.el) or ~/.doom.d
, but to reproduce this issue no config is needed as doom bundles an already configured company mode.
EDIT: Note that doom emacs use vi bindings from evil-mod
good luck with that 👀 .
from emacs.
@A6GibKm thank you.
I installed doom emacs in ~/.emacs.d/
,
saved the above config as ~/.config/doom/config.el
,
ran ./.emacs.d/bin/doom run
,
did M-x lisp-interaction-mode
,
did M-x company-mode
,
input (des
,
and I got this screenshot:
It is running on wayland.
What to do next?
from emacs.
You do not need any configuration, the entire procedure should be (without any user config file)
$ git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
$ ~/.emacs.d/bin/doom install
$ emacs
then
C-x C-f ~/.emacs.d/init.el
And type (des
or anything which promps company-mode.
NOTE: Incidentally I tried opening the scratch buffer and enable lisp-interaction-mode
but I was not able to reproduce in this setting.
from emacs.
Related Issues (20)
- Sometimes segmentation fault when using selectrum-mode HOT 2
- Failed to compile when enable PGTK_DEBUG HOT 3
- Emacs daemon crash after several Sway reloads HOT 8
- Super key problem HOT 2
- org-roam-mode+marginalia-mode hangs `C-h v` HOT 3
- Empty new frame after disabled menu/scroll/tool bar HOT 5
- "top" and "left" frame parameters HOT 1
- Shift-space not registering HOT 7
- Cannot scroll with xterm-mouse-mode HOT 1
- Segfault in pgtk_mouse_position HOT 2
- child frame focus issue HOT 4
- C-= does not register HOT 2
- compilation error due to empty last case in switch HOT 1
- Support for copy image from clipboard HOT 4
- emacs cannot paste unicode characters correctly HOT 21
- Is pgtk fork suppose to support macOS? HOT 23
- Scrollbars do not have hover/pressed colors HOT 3
- Touchscreen input support? HOT 7
- Clipboard not working with other apps when launched with systemd after reboot HOT 6
- Minibuffer feels frozen when using straight.el's `straight-rebuild-all` HOT 15
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 emacs.