Emacs

2598 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS
176
 
 

Embark is a fantastic and thoughtfully designed package for Emacs that flips Emacs’ action → object ordering without adding a learning curve. It’s completely changed how I use Emacs, and I’m going to show you why.

177
 
 

Today, we’re taking a look at Emacs’s whitespace-mode and discussing how we can simplify its configuration to make it more applicable for most use cases.

178
 
 

Pulsar is a small package that temporarily highlights the current line, either on demand or automatically after invoking a function that is present in a user-defined list.

179
180
181
 
 

I developed a patcher to allow Pylance to run outside of VS Code again, standalone. You can combine that with a code snippet from the lsp-mode issue tracker to integrate Pylance into Emacs. The patcher is so trivial under the hood that you can do it by hand if you prefer it that way, assuming a bit of JavaScript knowledge.

182
 
 

Huh? Is there an @emacs setting to get format=flowed?

https://useplaintext.email/

183
184
185
 
 

Is there a way to configure Emacs to lock certain files/buffers to specific tabs? For example, if I want all ERC buffers to stay in the ERC tab, or a selected set of org files to stay in the Org tab, etc.

186
 
 

evil-textobj-tree-sitter is a project that provides additional textobjects by using tree-sitter. Link: https://github.com/meain/evil-textobj-tree-sitter


Hey everyone! Since we have tree-sitter now built into Emacs in the newer versions, I've updated evil-texobj-tree-sitter to work with the builtin treesit package. The queries are not as complete the implementation using elisp-tree-sitter, but should cover most of the common usecases. You can find more information in https://github.com/meain/evil-textobj-tree-sitter/pull/93

Removing hard dependency on evil-mode was one other most upvoded issue on the project and so I have added integration with thing-at-point for use without evil-mode. This happen a little while ago, but thought I would add it as well in this update.

187
188
1
submitted 2 years ago* (last edited 2 years ago) by bahmanm@lemmy.ml to c/emacs@lemmy.ml
 
 

⛔ Latest #Emacs (29.1-1.1) is broken on openSUSE Tumbleweed. Running emacs fails w/ a cryptic message.

💡The solution is to launch it using any of emacs-gtk or emacs-x11 or emacs-nox.

💡If your workflow relies on Emacs daemon like mine does, then simply evaluate (server-start) in the scratch buffer.

Hopefully the fix will be out very soon.

Cross-posted from https://mastodon.social/@bahmanm/110842724716130994

189
 
 

I’m trying to set up completion-at-point-functions in pascal-mode, I found that adding a hook with use-package works and leaves the global setting:

:hook (pascal-mode . (remove-hook ‘completion-at-point-functions ‘pascal-completions-at-point t))

However that causes a File mode specification error: (error Lisp nesting exceeds ‘max-lisp-eval-depth’) when I open a pascal file. Any ideas on how I could do it better?

190
 
 

I'm on opensuse tumbleweed, and today after updating my packages, I can't use emacs. Anyone have any ideas how to troubleshoot this?

❯ emacs -Q
Loading loadup.el (source)...
Dump mode: nil
Using load-path (/usr/share/emacs/29.1/lisp /usr/share/emacs/29.1/lisp/emacs-lisp /usr/share/emacs/29.1/lisp/progmodes /usr/share/emacs/29.1/lisp/language /usr/share/emacs/29.1/lisp/international /usr/share/emacs/29.1/lisp/textmodes /usr/share/emacs/29.1/lisp/vc)
Loading emacs-lisp/debug-early...
Symbol's function definition is void: file-name-sans-extension

191
 
 

Hello,

I am trying to switch to gnus for my main email client, however I cannot figure out how to get a copy of each email sent to my default Sent folder used by other email applications that was created by my provider (Posteo to be exact).

I have tried different things, such as by seting archive folder and attempting to gcc, but none of these have worked.

Additionally, I see many posts online are about doing this with an archive about once a month, whereas I just want each individual message to be placed in the "Sent" folder when it is sent.

Thank you.

192
193
 
 

Counsel-search is one of the few swiper commands I haven't yet replaced with a consult equivalent (counsel-keepassxc being the other one). Did anyone know if an equivalent tool exists in the counsel space?

194
195
 
 

Dear all,

A number of people expressed interest in a dedicated Org meetup. So, let's start it.

URL: https://bbb.emacsverse.org/b/iho-h7r-qg8-led

Time & Date: <2023-08-09 Wed 19:00-21:00 @+03,Europe/Istanbul>

The room will be open half an hour before the official start.

During the meetup, we can:

  • Give advice to new users
  • Showcase Org configs or workflows
  • Demo/discuss interesting packages
  • Troubleshoot each-other's issues
  • Discuss "Org mode" section of Emacs news (https://sachachua.com/blog/)
  • Discuss anything else Org-related
  • Everyone is free to join the discussion/chat or lurk around silently, listening.

We will not do any recording by default.

Original announcement: https://list.orgmode.org/orgmode/87tttlflht.fsf@localhost/

196
197
198
1
Emacs 29.1 Released (lists.gnu.org)
submitted 2 years ago* (last edited 2 years ago) by 4ffy@lemmy.ml to c/emacs@lemmy.ml
 
 

Available at your local GNU mirror and, depending on your OS, perhaps soon your favorite package manager repository. A full list of features and changes can be found in the NEWS file.

199
1
submitted 2 years ago* (last edited 2 years ago) by lukas@lemmy.haigner.me to c/emacs@lemmy.ml
 
 

I've got IDO everywhere and FIDO mode enabled. Unfortunately, FIDO hijacks commands such as occur that at best don't profit from FIDO, or at worst prevent you from doing what you want. Hence I took inspiration from StackOverflow and tweaked the code to disable FIDO temporarily. Enjoy :D

(defun disable-fido-advice (func &rest args)
  "Temporarily disable FIDO and call function FUNC with arguments ARGS."
  (interactive)
  (let ((state fido-mode))
    (unwind-protect
        (progn
          (fido-mode 0)
          (if (called-interactively-p 'any)
              (call-interactively func)
            (apply func args)))
      (fido-mode (if state 1 0)))))

(defun disable-fido (command)
  "Disable FIDO when command COMMAND is called."
  (advice-add command :around #'disable-fido-advice))

;; Commands without FIDO
(disable-fido 'command-here)
200
view more: ‹ prev next ›