Emacs

311 readers
3 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
251
 
 

Hey everyone, I am trying to use EXWM beside the Lightdm as my window manager on Debian. I created this .desktop file which calls a bash script to run Emacs with the expected parameters.

[Desktop Entry]
Encoding=UTF-8 
Name=EXWM 
GenericName=EXWM 
Comment=exwm 
MimeType=text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-java;application/x-shellscript;text/x-c;text/x-c++;text/x-ruby;text/x-python;text/x-clojure;text/css;text/html;text/x-javascript; 
Type=Application 
Terminal=false 
Categories=Development;TextEditor; 
StartupWMClass=exwm 
Exec=/home/user/src/personal/wm/ew-wm.sh 
Icon=icon 
Version=0.1 
X-LightDM-DesktopName=EXWM 
DesktopNames=EXWM

Here is how I initialize Exwm

(defun wm/initialize ()
  "Initilize EXWM window manager with the given PARAMS."
  (use exwm)
  (interactive)
  (require 'exwm)
  (require 'exwm-config)
  (require 'exwm-systemtray)
  (exwm-config-default)
)

But it ends with this error and warnings

Debugger entered--Lisp error: (cl-no-applicable-method xcb:-+request nil #)
  signal(cl-no-applicable-method (xcb:-+request nil #))
  cl-no-applicable-method(#s(cl--generic :name xcb:-+request :dispatches ((1 #s(cl--generic-generalizer :name cl--generic-t-generalizer :priority 0 :tagcode-function #f(compiled-function (name &rest _) #) :specializers-function #f(compiled-function (tag &rest _) #))) (0 #s(cl--generic-generalizer :name eieio--generic-generalizer :priority 50 :tagcode-function cl--generic-struct-tag :specializers-function #f(compiled-function (tag &rest _) #)) #s(cl--generic-generalizer :name cl--generic-t-generalizer :priority 0 :tagcode-function #f(compiled-function (name &rest _) #) :specializers-function #f(compiled-function (tag &rest _) #)))) :method-table (#s(cl--generic-method :specializers (xcb:connection t) :qualifiers nil :uses-cnm nil :function #f(compiled-function (obj request) #))) :options nil) nil #)
  apply(cl-no-applicable-method #s(cl--generic :name xcb:-+request :dispatches ((1 #s(cl--generic-generalizer :name cl--generic-t-generalizer :priority 0 :tagcode-function #f(compiled-function (name &rest _) #) :specializers-function #f(compiled-function (tag &rest _) #))) (0 #s(cl--generic-generalizer :name eieio--generic-generalizer :priority 50 :tagcode-function cl--generic-struct-tag :specializers-function #f(compiled-function (tag &rest _) #)) #s(cl--generic-generalizer :name cl--generic-t-generalizer :priority 0 :tagcode-function #f(compiled-function (name &rest _) #) :specializers-function #f(compiled-function (tag &rest _) #)))) :method-table (#s(cl--generic-method :specializers (xcb:connection t) :qualifiers nil :uses-cnm nil :function #f(compiled-function (obj request) #))) :options nil) (nil #))
  #f(compiled-function (&rest args) #)(nil #)
  apply(#f(compiled-function (&rest args) #) nil #)
  xcb:-+request(nil #)
  exwm-input--exit()
  exwm-exit()
  exwm-init()
  run-hooks(window-setup-hook)
  #f(compiled-function () #)()
  normal-top-level()
Warning (comp): exwm-workspace.el:1454:8: Warning: docstring wider than 80 characters Disable showing Disable logging Warning (comp): exwm-core.el:95:1: Warning: defcustom for ‘exwm-debug’ fails to specify containing group Disable showing Disable logging Warning (comp): exwm-core.el:95:1: Warning: defcustom for ‘exwm-debug’ fails to specify containing group Disable showing Disable logging Warning (comp): xcb-ewmh.el:171:1: Warning: Ambiguous initform needs quoting: xcb:Atom:UTF8_STRING Disable showing Disable logging Warning (comp): xcb-ewmh.el:184:1: Warning: Ambiguous initform needs quoting: xcb:Atom:ATOM Disable showing Disable logging Warning (comp): xcb-ewmh.el:184:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_SUPPORTED Disable showing Disable logging Warning (comp): xcb-ewmh.el:194:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:194:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_CLIENT_LIST Disable showing Disable logging Warning (comp): xcb-ewmh.el:204:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_CLIENT_LIST_STACKING Disable showing Disable logging Warning (comp): xcb-ewmh.el:215:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:215:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_NUMBER_OF_DESKTOPS Disable showing Disable logging Warning (comp): xcb-ewmh.el:231:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_DESKTOP_GEOMETRY Disable showing Disable logging Warning (comp): xcb-ewmh.el:247:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_DESKTOP_VIEWPORT Disable showing Disable logging Warning (comp): xcb-ewmh.el:262:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_CURRENT_DESKTOP Disable showing Disable logging Warning (comp): xcb-ewmh.el:271:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_CURRENT_DESKTOP Disable showing Disable logging Warning (comp): xcb-ewmh.el:277:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_DESKTOP_NAMES Disable showing Disable logging Warning (comp): xcb-ewmh.el:286:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:286:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_ACTIVE_WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:302:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:302:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WORKAREA Disable showing Disable logging Warning (comp): xcb-ewmh.el:312:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_SUPPORTING_WM_CHECK Disable showing Disable logging Warning (comp): xcb-ewmh.el:324:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_VIRTUAL_ROOTS Disable showing Disable logging Warning (comp): xcb-ewmh.el:329:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:329:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_VIRTUAL_ROOTS Disable showing Disable logging Warning (comp): xcb-ewmh.el:349:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:349:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_DESKTOP_LAYOUT Disable showing Disable logging Warning (comp): xcb-ewmh.el:362:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_SHOWING_DESKTOP Disable showing Disable logging Warning (comp): xcb-ewmh.el:378:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_CLOSE_WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:384:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_MOVERESIZE_WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:406:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_MOVERESIZE Disable showing Disable logging Warning (comp): xcb-ewmh.el:415:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_RESTACK_WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:422:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_REQUEST_FRAME_EXTENTS Disable showing Disable logging Warning (comp): xcb-ewmh.el:428:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_NAME Disable showing Disable logging Warning (comp): xcb-ewmh.el:436:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_VISIBLE_NAME Disable showing Disable logging Warning (comp): xcb-ewmh.el:445:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_ICON_NAME Disable showing Disable logging Warning (comp): xcb-ewmh.el:454:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_VISIBLE_ICON_NAME Disable showing Disable logging Warning (comp): xcb-ewmh.el:464:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:464:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_DESKTOP Disable showing Disable logging Warning (comp): xcb-ewmh.el:470:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:470:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_DESKTOP Disable showing Disable logging Warning (comp): xcb-ewmh.el:479:1: Warning: Ambiguous initform needs quoting: xcb:Atom:ATOM Disable showing Disable logging Warning (comp): xcb-ewmh.el:479:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_WINDOW_TYPE Disable showing Disable logging Warning (comp): xcb-ewmh.el:493:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_STATE Disable showing Disable logging Warning (comp): xcb-ewmh.el:509:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_ALLOWED_ACTIONS Disable showing Disable logging Warning (comp): xcb-ewmh.el:526:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_STRUT Disable showing Disable logging Warning (comp): xcb-ewmh.el:533:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:533:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_STRUT Disable showing Disable logging Warning (comp): xcb-ewmh.el:553:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_STRUT_PARTIAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:572:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_ICON_GEOMETRY Disable showing Disable logging Warning (comp): xcb-ewmh.el:585:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_ICON Disable showing Disable logging Warning (comp): xcb-ewmh.el:595:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_PID Disable showing Disable logging Warning (comp): xcb-ewmh.el:605:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:605:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_HANDLED_ICONS Disable showing Disable logging Warning (comp): xcb-ewmh.el:616:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_USER_TIME Disable showing Disable logging Warning (comp): xcb-ewmh.el:627:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_USER_TIME_WINDOW Disable showing Disable logging Warning (comp): xcb-ewmh.el:645:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_FRAME_EXTENTS Disable showing Disable logging Warning (comp): xcb-ewmh.el:658:1: Warning: Ambiguous initform needs quoting: xcb:Atom:ATOM Disable showing Disable logging Warning (comp): xcb-ewmh.el:658:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_OPAQUE_REGION Disable showing Disable logging Warning (comp): xcb-ewmh.el:669:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-ewmh.el:669:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_BYPASS_COMPOSITOR Disable showing Disable logging Warning (comp): xcb-ewmh.el:684:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_PING Disable showing Disable logging Warning (comp): xcb-ewmh.el:684:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_PROTOCOLS Disable showing Disable logging Warning (comp): xcb-ewmh.el:691:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_SYNC_REQUEST Disable showing Disable logging Warning (comp): xcb-ewmh.el:703:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_SYNC_REQUEST_COUNTER Disable showing Disable logging Warning (comp): xcb-ewmh.el:724:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_WM_FULLSCREEN_MONITORS Disable showing Disable logging Warning (comp): xcb-icccm.el:87:1: Warning: Ambiguous initform needs quoting: xcb:EventMask:NoEvent Disable showing Disable logging Warning (comp): xcb-icccm.el:96:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_PROTOCOLS Disable showing Disable logging Warning (comp): xcb-icccm.el:106:1: Warning: Ambiguous initform needs quoting: xcb:Time:CurrentTime Disable showing Disable logging Warning (comp): xcb-icccm.el:106:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_DELETE_WINDOW Disable showing Disable logging Warning (comp): xcb-icccm.el:111:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_TAKE_FOCUS Disable showing Disable logging Warning (comp): xcb-icccm.el:169:1: Warning: Ambiguous initform needs quoting: xcb:PropMode:Replace Disable showing Disable logging Warning (comp): xcb-icccm.el:195:1: Warning: Ambiguous initform needs quoting: xcb:GetPropertyType:Any Disable showing Disable logging Warning (comp): xcb-icccm.el:226:1: Warning: Ambiguous initform needs quoting: xcb:Atom:STRING Disable showing Disable logging Warning (comp): xcb-icccm.el:333:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_NAME Disable showing Disable logging Warning (comp): xcb-icccm.el:341:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_ICON_NAME Disable showing Disable logging Warning (comp): xcb-icccm.el:380:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_SIZE_HINTS Disable showing Disable logging Warning (comp): xcb-icccm.el:393:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_NORMAL_HINTS Disable showing Disable logging Warning (comp): xcb-icccm.el:423:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_HINTS Disable showing Disable logging Warning (comp): xcb-icccm.el:437:1: Warning: Ambiguous initform needs quoting: xcb:Atom:STRING Disable showing Disable logging Warning (comp): xcb-icccm.el:437:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_CLASS Disable showing Disable logging Warning (comp): xcb-icccm.el:466:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WINDOW Disable showing Disable logging Warning (comp): xcb-icccm.el:466:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_TRANSIENT_FOR Disable showing Disable logging Warning (comp): xcb-icccm.el:478:1: Warning: Ambiguous initform needs quoting: xcb:Atom:ATOM Disable showing Disable logging Warning (comp): xcb-icccm.el:478:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_PROTOCOLS Disable showing Disable logging Warning (comp): xcb-icccm.el:488:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WINDOW Disable showing Disable logging Warning (comp): xcb-icccm.el:498:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_CLIENT_MACHINE Disable showing Disable logging Warning (comp): xcb-icccm.el:517:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_STATE Disable showing Disable logging Warning (comp): xcb-icccm.el:538:1: Warning: Ambiguous initform needs quoting: xcb:Atom:WM_ICON_SIZE Disable showing Disable logging Warning (comp): xcb-types.el:56:1: Warning: defcustom for ‘xcb:debug’ fails to specify containing group Disable showing Disable logging Warning (comp): xcb-types.el:56:1: Warning: defcustom for ‘xcb:debug’ fails to specify containing group Disable showing Disable logging Warning (comp): exwm-layout.el:410:23: Warning: value returned from (< 1 (window-height (internal-get-closed-var 0))) is unused Disable showing Disable logging Warning (comp): exwm-layout.el:136:14: Warning: the function ‘exwm-workspace--get-geometry’ is not known to be defined. Disable showing Disable logging Warning (comp): exwm-manage.el:668:28: Warning: the function ‘exwm-workspace--get-geometry’ is not known to be defined. Disable showing Disable logging Warning (comp): exwm-manage.el:411:12: Warning: the function ‘exwm-layout-set-fullscreen’ is not known to be defined. Disable showing Disable logging Warning (comp): exwm-manage.el:394:12: Warning: the function ‘exwm-input-release-keyboard’ is not known to be defined. Disable showing Disable logging Warning (comp): xcb-xembed.el:74:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_XEMBED_INFO Disable showing Disable logging Warning (comp): xcb-xembed.el:88:1: Warning: Ambiguous initform needs quoting: xcb:EventMask:NoEvent Disable showing Disable logging Warning (comp): xcb-xembed.el:93:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_XEMBED Disable showing Disable logging Warning (comp): xcb-xembed.el:102:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:EMBEDDED-NOTIFY Disable showing Disable logging Warning (comp): xcb-xembed.el:107:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:WINDOW-ACTIVATE Disable showing Disable logging Warning (comp): xcb-xembed.el:111:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:WINDOW-DEACTIVATE Disable showing Disable logging Warning (comp): xcb-xembed.el:115:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:REQUEST-FOCUS Disable showing Disable logging Warning (comp): xcb-xembed.el:129:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:FOCUS-IN Disable showing Disable logging Warning (comp): xcb-xembed.el:134:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:FOCUS-OUT Disable showing Disable logging Warning (comp): xcb-xembed.el:138:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:FOCUS-NEXT Disable showing Disable logging Warning (comp): xcb-xembed.el:143:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:FOCUS-PREV Disable showing Disable logging Warning (comp): xcb-xembed.el:155:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:REGISTER-ACCELERATOR Disable showing Disable logging Warning (comp): xcb-xembed.el:160:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:UNREGISTER-ACCELERATOR Disable showing Disable logging Warning (comp): xcb-xembed.el:167:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:ACTIVATE-ACCELERATOR Disable showing Disable logging Warning (comp): xcb-xembed.el:172:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:MODALITY-ON Disable showing Disable logging Warning (comp): xcb-xembed.el:176:1: Warning: Ambiguous initform needs quoting: xcb:xembed:opcode:MODALITY-OFF Disable showing Disable logging Warning (comp): xcb-systemtray.el:69:1: Warning: Ambiguous initform needs quoting: xcb:EventMask:NoEvent Disable showing Disable logging Warning (comp): xcb-systemtray.el:74:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_SYSTEM_TRAY_OPCODE Disable showing Disable logging Warning (comp): xcb-systemtray.el:82:1: Warning: Ambiguous initform needs quoting: xcb:systemtray:opcode:REQUEST-DOCK Disable showing Disable logging Warning (comp): xcb-systemtray.el:88:1: Warning: Ambiguous initform needs quoting: xcb:systemtray:opcode:BEGIN-MESSAGE Disable showing Disable logging Warning (comp): xcb-systemtray.el:95:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_SYSTEM_TRAY_MESSAGE_DATA Disable showing Disable logging Warning (comp): xcb-systemtray.el:102:1: Warning: Ambiguous initform needs quoting: xcb:systemtray:opcode:CANCEL-MESSAGE Disable showing Disable logging Warning (comp): xcb-systemtray.el:112:1: Warning: Ambiguous initform needs quoting: xcb:Atom:CARDINAL Disable showing Disable logging Warning (comp): xcb-systemtray.el:112:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_SYSTEM_TRAY_ORIENTATION Disable showing Disable logging Warning (comp): xcb-systemtray.el:125:1: Warning: Ambiguous initform needs quoting: xcb:Atom:VISUALID Disable showing Disable logging Warning (comp): xcb-systemtray.el:125:1: Warning: Ambiguous initform needs quoting: xcb:Atom:_NET_SYSTEM_TRAY_VISUAL Disable showing Disable logging Warning (comp): exwm-systemtray.el:47:1: Warning: Ambiguous initform needs quoting: xcb:Atom:MANAGER Disable showing Disable logging

I used the same script on NixOS (except the Lightdm part) and it works without any problems. Could you help me to understand why it can not find xcb:request? I opened an issue on GH of EXWM but did not get any answer.

252
 
 

Is there a way to convince org-transclusion to accept denote links as input? Or maybe a list of them? Or perhaps a list of them, from a dynamic block?

253
 
 

I have a minir inconvenience I hope to be able to solve. I have a couple of markdown buffers open. Many times details are hidden away using outline mode. When I use `rgrep` to search for occurences in buffers, which are already open, and use the mouse to jump to the matching buffer and occuence, point jumps to the closest visible occurence but doesn't "open" details which are hidden because of outline mode.

Is there a way to reveal the actually matching details?

254
255
 
 

Thanks to this reddit I've just learned about the Eat terminal emulator, which is really wonderful, especially for someone with that desire to live entirely inside emacs.

My only issue is mostly aesthetic. I use EXWM and usually run kitty inside it because I like having my terminals have a different background color than my buffers.

Is it possible to have emacs color my Eat buffers differently than others?

Thanks for any advice!

256
 
 
257
 
 

When I run eval-expression I can type in an expression but enter is putting in a new line instead of executing the code, what should I look for to fix this ?

I am guessing it may be some kind of hook but not sure how to find the cause to resolve it

Example attempting to run a code snippet

258
 
 

How to make a delete the same number of chars that the adds? (MacOS)

For instance, in org-mode tab adds 4 spaces but backspace deletes only one single space.

For .rs, .py, etc files it does delete variable number of spaces depending on the context.

259
260
 
 

How do i make my neotree icons look like this

261
262
 
 

i don't know why anyone would use emacs is what i thought first

but now i've developed an understanding about why people use it

now i want to switch to emacs but the learning curve is insane

is there a tutorial for learning to use emacs step by step because i want to learn emacs fast and the only way to do it is using a well guided video series i believe or maybe a well made website or blog post

because i now just get flustered when i start using emacs because there's so much to learn

what should i learn first is my question because just reading help document doesn't help a noob like me?

as of now i can only give around 3 hours to learn emacs but i would give more if i could

i have used neovim with lsp for 1 year now how much time would it take for me to be faster at emacs than i'm currently in vim?

i would really apprecitate the answer of highlighted question and the main question

also please don't give an answer like it would depend on many things ( of course it would depend on many factors)

but i want to know how much time would it take for you to be better at emacs you would have been at vim after learning it for around a year+

263
 
 

i love neovim but i've heard many people say that emacs is wayy better than neovim

in fact bill joy after creating vim said that he made a big mistake by creating vi

i have never seen that crazy fast dude who codes on emacs and just flies basically

i've always seen extremely fast people code on neovim and loved that i was part of that community

for me speed is topmost priority

i thought emacs loaded slow but now i see that emacs server makes emacs gui load faster ( wayy faster than conventional command)

is there a video you guys can link me of a user using emacs who is extremely fast and not just because of his typing speed but because he's using emacs

i would have to learn almost everything from scratch for using emacs

so please refer me post a convincing arguement there is nobody in my college who uses vim or emacs so i don't have anyone to look up to as of now so i don't know which choice is good for me

i want a video or a proof that emacs is wayy faster and efficient to code on than conventional vim

also should i use emacs in evil mode to be faster cause i believe nothing will beat vim motions

264
 
 

How to setup Doom Emacs to be able to delete a word using +?

Left Option does work out-of-the-box.

I also tried to achieve by setting

(global-set-key (kbd "") 'backward-kill-word)
(global-set-key (kbd "") 'backward-kill-word)

but it didn't help.

265
266
 
 

Trying to use mu for searching in gnus and never getting any results. No error messages, just empty search. mu find on the command line works fine and returns what is expected (and does in mu4e as well), but this does not give me anything in Gnus. Any suggestions? ...

(setq gnus-secondary-select-methods
  '((nnmaildir "mail"
	   (directory "/home/britt/.local/share/mail")
	   (gnus-search-engine gnus-search-mu))))
267
 
 

Gnuplot generates SVG images in Org Babel as shown below.

In the left solarized-dark theme, the SVG images exhibit a brown background that blends with the dark theme, resulting in very reduced visibility.

Conversely, in the right solarized-light theme, the SVG images display a pleasant light-blue background, offering excellent readability.

https://preview.redd.it/v1rb8scyvhxb1.png?width=1158&format=png&auto=webp&s=384dd8adef7ab7e085fb3887d1a1207a8468aa6e

How can SVG images be displayed with a light-blue background in the dark theme, as it is in the light theme?

268
 
 

I'm trying to get Elfeed to work with FreshRSS. I know that the FreshRSS API works correctly because I tested it with an RSS reader on my iPad and iPhone and it syncs correctly with the login/password credentials and the API url.

However, with Elfeed, I get nothing. I'm sharing my elfeed setup below in the hopes that someone might let me know if I'm doing anything wrong.

(use-package elfeed
:bind
("C-x e" . elfeed))

(require 'elfeed-goodies)

(use-package elfeed-protocol
:ensure t
:demand t
:after elfeed
:config
:custom
(elfeed-protocol-fever-maxsize 10000)
(elfeed-use-curl t)
(elfeed-set-timeout 36000)
;;(elfeed-log-level 'debug)
;;(toggle-debug-on-error)
(elfeed-curl-extra-arguments '("--insecure"))
(setq elfeed-protocol-enabled-protocols '(fever newsblur owncloud ttrss))
(elfeed-protocol-enable)
(setq elfeed-protocol-fever-update-unread-only t)
(setq elfeed-protocol-fever-fetch-category-as-tag t)
(setq elfeed-protocol-feeds '(("fever+http://[email protected]"
:api-url "http://mydomain.org/api/fever.php"
:password "my password"))))

269
 
 

I want a file manager to appear on the side of the screen when I open emacs, like you would have in gedit or atom. I am open to using any package or plugin as long as you can tell me what to put in my init file to make it open when I start emacs.

270
 
 

In many programming tasks it is helpful to be able to write log messages or display alerts to see what code is executing. I am having a bit of trouble with my emacs init file and I was wondering if there was some way to write some sort of log messages from it.

271
 
 

Hi all,

I've just got Emacs 28.1 running on WSL2. I've been using Emacs on Windows for many years and I now want to switch to WSL for the speed benefit. However, I'd like to keep the ability to run my Windows installation of Emacs, using the same packages and configuration files as my WSL version.

The Home directory for my Windows Emacs installation is C:\Dropbox\Home, therefore I added the following lines to the init.el file loaded by the WSL Emacs installation:

(setq user-init-file "/mnt/c/Dropbox/Home/.emacs")
(setq user-emacs-directory "/mnt/c/Dropbox/Home")
(add-to-list 'load-path "/mnt/c/Dropbox/Home/.emacs.d")
(add-to-list 'load-path "/mnt/c/Dropbox/Home/.emacs.d/elpa")

The first line works, in that it does read the specified .emacs file. However, when it attempts to load some of the packages (specifically those found in C:\Dropbox\Home\.emacs.d\elpa) it fails, saying it cannot find the file or folder specified.

I can't figure out where it's looking for those packages and why it cannot find them despite me adding the package folders to the load-path var. Any help much appreciated.

272
 
 

I have the entire elpa directory added into a git repository so that I always have a known good setup that I can fall back on. This works well when I am cloning it in linux machines but when I clone it in windows machines, it doesn’t work.

I have removed all the .elc files since those are not cross compatible but it still didn’t work and I realise that it’s because the generated autoload file is specified to be using unix style line endings (LF) but when I cloned it in the windows machine, the autoload files will have dos style line endings (CRLF) therefore causing the issue.

Interestingly, the init file also uses CRLF and it still works presumably because it does not have the same specified coding as the generated autoload files.

How should I get around this problem? I’m thinking of setting core.autocrlf to false on my windows machine. While that works, I will have to remember to create new files in my .emacs.d with only LF to keep the git repo clean and also presumably for it to work. I also thought about regenerating those autoloads after a clone but I’m not sure how to do so. Hence, I’m looking to see whether others have better solutions to this problem.

Edit: I realise I can set core.autocrlf to input so that git will automatically convert any CRLF to LF on commit therefore resolving the issue. Regardless, I am still interested to hear from the others who version control their elpa directory on what is their strategy.

273
 
 

There is a little Org issue that has been bugging me for quite long. When using Org for task management, subheadings are typically used to define tasks, often grouped under one heading that defines a project. For instance:

* Project 1
** TODO Task a
** TODO Task b

* Project 2
** TODO Task c

Org folds blank lines at the end of any subtree into the latest subheading. So, when I start unfolding Project 1, Task b shows as Task b..., i.e. it seems to have some hidden description which is misleading. I always go to see what is under Task b... only to find its empty.

A compromise is to set org-cycle-separator-lines to 1. However, this prevents the user from writing descriptions that are well spaced, as this will introduce unwanted blank lines in the folded view. For example:

* Project 1
** TODO Task a

- [ ] Subtask
- [ ] Subtask

** TODO Task b

The above code shows as:

* Project 1
** TODO Task a...

** TODO Task b

Any better solutions?

274
 
 

When I hit the "enter" key, it just goes to the next line and doesn't evaluate the expression.

I tried searching to see if anyone else had experienced this, but I can't find anything. My bad if this is a simple question, but I just haven't been able to figure it out.

It's inconvenient, because oftentimes, there is no M-x equivalent of an S-expression, so I have no way to do something that requires a call to an Emacs Lisp function.

275
 
 

I recently configured company and lsp-mode and now completion in find-file doesnt work and just shows "[Company mode not enabled]" when I try to tab complete. Any idea whats wrong?

Heres my config:

-*- lexical-binding: t; -*-

;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!


;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
(setq user-full-name "Kaiser Patrishkoff"
      user-mail-address "[email protected]")

;; Doom exposes five (optional) variables for controlling fonts in Doom:
;;
;; - `doom-font' -- the primary font to use
;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
;;   presentations or streaming.
;; - `doom-unicode-font' -- for unicode glyphs
;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
;;
;; See 'C-h v doom-font' for documentation and more examples of what they
;; accept. For example:
;;
;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
;;      doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
;;
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
;; refresh your font settings. If Emacs still can't find your font, it likely
;; wasn't installed correctly. Font issues are rarely Doom issues!

;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
;;
(setq doom-theme 'doom-molokai)
;; (setq doom-theme 'doom-ayu-mirage)
;; (setq doom-theme 'doom-gruvbox)
;; (setq doom-theme 'doom-solarized-dark)
;; (setq doom-theme 'doom-outrun-electric)

;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type t)

;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")


(setenv "PATH" (concat (getenv "PATH") ":/usr/texbin"))

(add-to-list 'exec-path "/Library/TeX/texbin/pdflatex")

;; Whenever you reconfigure a package, make sure to wrap your config in an
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
;;
;;   (after! PACKAGE
;;     (setq x y))
;;
;; The exceptions to this rule:
;;
;;   - Setting file/directory variables (like `org-directory')
;;   - Setting variables which explicitly tell you to set them before their
;;     package is loaded (see 'C-h v VARIABLE' to look up their documentation).
;;   - Setting doom variables (which start with 'doom-' or '+').
;;
;; Here are some additional functions/macros that will help you configure Doom.
;;
;; - `load!' for loading external *.el files relative to this one
;; - `use-package!' for configuring packages

;;   `require' or `use-package'.
;; - `map!' for binding new keys
;;
;; To get information about any of these functions/macros, move the cursor over
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
;; This will open documentation for it, including demos of how they are used.
;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
;; etc).
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
(add-hook 'org-mode-hook 'org-cdlatex-mode)
(add-hook 'org-mode-hook 'org-fragtog-mode)
(add-hook 'rust-mode-hook 'lsp-deferred)
(yas-global-mode)
(add-hook 'after-init-hook 'global-company-mode)

(use-package! org-fragtog)

(after! evil-org :scale 3)

(setq find-file-wildcards t)

(use-package lsp-mode
  :ensure
  :commands lsp
  :custom
  ;; what to use when checking on-save. "check" is default, I prefer clippy
  (lsp-rust-analyzer-cargo-watch-command "clippy")
  (lsp-eldoc-render-all t)
  (lsp-idle-delay 0.6)
  ;; enable / disable the hints as you prefer:
  (lsp-inlay-hint-enable t)
  ;; These are optional configurations. See https://emacs-lsp.github.io/lsp-mode/page/lsp-rust-analyzer/#lsp-rust-analyzer-display-chaining-hints for a full list
  (lsp-rust-analyzer-display-lifetime-elision-hints-enable t)
  (lsp-rust-analyzer-display-chaining-hints t)
  (lsp-rust-analyzer-display-lifetime-elision-hints-use-parameter-names t)
  (lsp-rust-analyzer-display-closure-return-type-hints t)
  (lsp-rust-analyzer-display-parameter-hints t)
  (lsp-rust-analyzer-display-reborrow-hints nil)
  :config
  (add-hook 'lsp-mode-hook 'lsp-ui-mode)
  (add-hook 'rust-mode-hook 'lsp-rust-analyzer-inlay-hints-mode))

(use-package lsp-ui
  :ensure
  :commands lsp-ui-mode
  :custom
  (lsp-ui-peek-always-show t)
  (lsp-ui-sideline-show-hover t)
  (lsp-ui-doc-enable nil))

(use-package company
  :ensure
  :custom
  (company--idle-delay 0.3)
  (company-minimum-prefix-length 1)
  :bind
    (:map company-mode-map
     ("". company-indent-or-complete-common)
	))
(company-tng-configure-default)

(use-package yasnippet
  :ensure
  :config
  (yas-reload-all)
  (add-hook 'prog-mode-hook 'yas-minor-mode)
  (add-hook 'text-mode-hook 'yas-minor-mode))

(use-package yasnippet-classic-snippets)

(use-package flycheck :ensure)

(setq lsp-inlay-hint-enable t)

(global-set-key (kbd "") 'company-indent-or-complete-common)
view more: ‹ prev next ›