Emacs

314 readers
2 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
 
 

It's a feature that I miss from Clion, my current workflow is by using a 3rd party linter after my coding session outside of Emacs. I know that I can use the linter with an after-save-hook, but is there any other solutions with flycheck or lsp integrations? (I tried flycheck-clang-tidy but I didn't get any warrings or indicators, not sure if clang-tidy can detect them though)

252
 
 

I have set agenda files to refile captures, which codes show as below

(setq org-agenda-files (list "~/org/))

Also, include refile codes

(setq org-refile-targets '((nil :maxlevel . 2) (org-agenda-files :maxlevel . 2)))

(setq org-outline-path-complete-in-steps nil)

(setq org-refile-use-outline-path 'file)

The main problem is I can not find files I set in the org-agenda-files when I want to refile my capture in completions

253
 
 

Hi there,

I'm a newbie in emacs.

I want to use doom emacs w/o evil-mode, but all I find that vim bindings (https://github.com/niyumard/Doom-Emacs-Cheat-Sheet)

254
 
 

Hello, I have a problem where I want to configure the org-roam-dailes-capture-templates to include in the options the ability to automatically insert \n:t. But due to syntaxical purpose that is read as if I want to have a line break in the template itself. Is there any other way to enable that option without using "/n:t" ?

My current org-roam-dailies-capture-templates look as such:

(setq org-roam-dailies-capture-templates
      '(("d" "default" entry
	 "* %?"
	 :target (file+head "%<%Y-%m-%d>.org"
			    "#+title: %<%d-%m-%Y>\n#+options: author:nil, date:nil, toc:nil, num:5, H:5, \n:t, html-postamble:nil\n"))))

What it ends up doing is the following:

#+title: %currentdate
#+options: author:nil, date:nil, toc:nil, num:5, H:5,
:t, html-postamble:nil

What I want it to do is the following:

#+title: %currentdate
#+options: author:nil, date:nil, toc:nil, num:5, H:5, \n:t, html-postamble:nil

2nd Question: How to also make sure that the #+options line is also included when I open a new node and not only in the dailies page? I am very new to Emacs in general, so thank you for your patience if my question is dead simple and I am unable to figure out very simple things. Appreciate any help.

255
 
 

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.

256
 
 

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?

257
 
 

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?

258
 
 

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!

259
 
 
260
 
 

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

261
 
 

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.

262
263
 
 

How do i make my neotree icons look like this

264
265
 
 

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+

266
 
 

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

267
 
 

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.

268
269
 
 

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))))
270
 
 

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?

271
 
 

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://username@mydomain.org"
:api-url "http://mydomain.org/api/fever.php"
:password "my password"))))

272
 
 

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.

273
 
 

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.

274
 
 

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.

275
 
 

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.

view more: ‹ prev next ›