r_emacs | Unsorted

Telegram-канал r_emacs - /r/emacs

70

This channel is a feed for r/emacs. @r_channels @reddit2telegram

Subscribe to a channel

/r/emacs

lsp C# on nixos: Error running timer: (file-missing "Doing vfork" "No such file or directory")

Hi,

so, the omnisharp version in nixos is borgt and dose not work at all... But if i use lsp-install-server everytime i try to run the lsp i get this mesasge: Error running timer: (file-missing "Doing vfork" "No such file or directory")

I don't know what Doing vfork means, all i know is that some file is missing. But how do i find out WHAT file is missing? Non of the buffers (lsp log, lsp stderr etc.) say something meaning full... how do i debug this? --debug-init is useless i think because the error dose not occur during init.

Please help my GoogleFu is failing me!

https://redd.it/18nya2c
@r_emacs

Читать полностью…

/r/emacs

Use Gnus with another mail client - share same mailbox.

I'd like to use Gnus: its usage paradigm looks appealing and I'd like to use it to navigate mails, newsletters, newsgroups and RSS feeds together with a handful of features like scoring and filtering and big customization - as expected fro Emacs.


However, I'd like not to renounce (yet?) to the comfort of GUI mail clients (Thunderbird, Evolution, Geany, any is good for me...) in some situations. So the question: is there a way to make them share the same inbox, without having to download the mail twice?. Maybe with a separate process that fetches the emails, so that Gnus does not get stuck doing network operations.

Additional info: My mail provider is Proton Mail. The question applies mainly to Linux systems. It would be useful to have a similar setup even using Emacs for Android - but I guess it's a chimera.

Thank you in advance for your help

https://redd.it/18nqqti
@r_emacs

Читать полностью…

/r/emacs

Config mu4e to use gpg subkey for signing

I'm capable of sending signed emails via mu4e; Emacs' mml simply sees the FROM: field and from that uses the gpg master key for signing. However I would like to specify a subkey to use, but can't seem to find the variable/function to do so.

https://redd.it/184dx3p
@r_emacs

Читать полностью…

/r/emacs

Moving to Emacs - getting issues out of the box

Hi all, I'm moving towards Emacs as an old vim user, with the goal of giving up my heathen C ways in favor of Lisp.

Attempting to use slime on a fresh install gives the error:
Eager macro-expansion failure: (wrong-number-of-arguments (3 . 4) 2)

wth is this? ):

https://redd.it/184926x
@r_emacs

Читать полностью…

/r/emacs

configure line commenting

When I do: M-x comment-line or C-x C-;

It puts a space after comment marks, i.e, the line, that I want to comment:

some line

It does this:

// some line

I use a different style of coding, i.e. I don't like to put spaces between the comment mark and the comment line.

In customize, I've searched for all the places, where it could be configured and set 0 for spaces after comment mark and removed the space from the field, that said, that it is responsible for putting spaces after the comment mark, but it didn't help. The space still appends and I have to manually remove it.

Can you help me to set it up correctly.

I am new to Emacs and still trying to figure it out.

https://redd.it/18454p0
@r_emacs

Читать полностью…

/r/emacs

calc's elisp function documentation.

Calc'c elisp functions (imho) all have the prefix `calcFunc-`. So in order to use a calc function like `vlen` in an org table lisp formula, one could use `calcFunc-vlen`. That's nice.

What bothers me is the lack of "on-line" documentation (i.e. usable with eldoc or completion frameworks).

All calc functions are nicely documented here: https://www.gnu.org/software/emacs/manual/html_mono/calc.html , thats good.

It is possible to modify a elisp's function documentation. e.g. like so:

(put 'calcFunc-vlen 'function-documentation
"Computes the length of a vector.
The length of a non-vector is considered to be zero.
Note that matrices are just vectors of vectors for the purposes of this command.")

Now `calcFunc-vlen` would have a nice "on-line" documentation, usable with `C-h f`, autocompletion and eldoc.

Has anyone already bothered to gather some of those strings from the manual, in a more machine processable form? So I could save some work to create "on-line" documentation of the calc functions?

https://redd.it/183xxhd
@r_emacs

Читать полностью…

/r/emacs

Sending notification from Android Emacs

Hi all,

I am using native Emacs build for Android.

Is there a way to send notification from my Emacs app to Android using some package?

Has anyone found a way or a workaround?

https://redd.it/183u77n
@r_emacs

Читать полностью…

/r/emacs

Karthinks - Different strokes for different folks
https://karthinks.com/software/different-strokes-for-different-folks/

https://redd.it/183h0k3
@r_emacs

Читать полностью…

/r/emacs

Diary Appt Alert Behavior

Hi,

I am not sure if many people are using alerts for the appointments, I do, I like the behavior where it brings Emacs to the front and shows a message in the mini buffer. However, when I am quickly writing in another application I sometimes end up writing in the active buffer. I am contemplating creating a function which puts the buffer in read only mode before showing switching to Emacs, if it was not already Read Only, and restores it when the reminder disappears. That should be enough to avoid accidental writing.

Before I embark in that task I would like to know if anybody has done anything like that, or any other creative ideas to avoid contaminating the current buffer.

Thanks!

https://redd.it/183131a
@r_emacs

Читать полностью…

/r/emacs

Emacs Swift module is wonderful for macOS native UX integrations
https://redd.it/182ulo1
@r_emacs

Читать полностью…

/r/emacs

EmacsWiki: Moving The Ctrl Key
https://www.emacswiki.org/emacs/MovingTheCtrlKey

https://redd.it/182sj28
@r_emacs

Читать полностью…

/r/emacs

elpaca fails to access the repos.

I am trying to install ement.el with the following config

#+beginsrc emacs-lisp
(use-package ement
:elpaca (:host github :repo "alphapapa/ement.el"))
#+end
src

When the config is loaded I get the error as follows. There are no network issues.

ement GNU-devel ELPA|GNU ELPA
Matrix client

source: GNU-devel ELPA
url: https://elpa.gnu.org/packages/ement.html
menu item:
( :package "ement"
:repo "https://github.com/alphapapa/ement.el.git"
:local-repo "ement"
:files
(:defaults "" (:exclude ".git")))
recipe:
( :package "ement"
:host github
:repo "alphapapa/ement.el"
:local-repo "ement"
:files
(:defaults "
" (:exclude ".git"))
:protocol https
:inherit t
:depth nil)
dependencies: ?
dependents: ?
commit:
statuses:
(failed cloning reclone cloning queued)

​

https://redd.it/182jngh
@r_emacs

Читать полностью…

/r/emacs

Can i run emacs gui on a quest 3?

I see theres an android version of gui emacs as of version 30.1, but would I be able to run it within the quest 3? Which limitations would I run into? Could I run pdf tools and the latex preview feature in auctex? Would i be able to download stuff from melpa?

https://redd.it/182hoqv
@r_emacs

Читать полностью…

/r/emacs

Turning on font "smart kerning" or "texture healing" in Emacs

The Commit Mono font has a feature that it calls "smart kerning". Monaspace has a similar feature that it calls "texture healing." Characters are moved around slightly, or swapped out for a slightly larger or smaller character to even out the spacing, for example, when a wide character like an 'm' is followed by a narrow character like an 'l'.

The effect looks nice on their web sites. It worked in VSCode, but not in Emacs. The "smart kerning" / "texture healing" features did not seem to be activated when I tried the fonts in Emacs.

How would I get this to work in Emacs? The Monaspace docs say you have to add "'calt'" to "editor.ligatures" in the VSCode Settings. Commit Mono just worked without changing the settings.

I might end up hating the moving around, but I'd have to try it for a few hours to see. I'm just not sure how to set that up in Emacs, or if Emacs supports that sort of thing.

https://redd.it/182e04c
@r_emacs

Читать полностью…

/r/emacs

Open a Vertico/Consult or Ivy/Counsel candidate in a new tab

I would like to share a code snippet designed to simplify the task of opening Vertico/Consult/Embark or Ivy/Counsel candidates in a new Emacs tab.

This is a generic function that opens the buffer created by any function in the other window in a new tab:

;; License: MIT
;; Author: James Cherti
;; Latest version: https://www.jamescherti.com/emacs-open-vertico-consult-ivy-counsel-candidate-new-tab/

(defun tab-new-func-other-window-buffer (func)
"Open the buffer that is open by the function FUNC in the other
window in a new tab."
(interactive)
(let* ((current-tab-index (tab-bar--current-tab-index))
(original-tab-index (1+ current-tab-index))
(original-window (selected-window)))
;; Save the state of the other window
(other-window 1)
(let* ((other-window (selected-window))
(other-window-buf (current-buffer))
(other-window-point (point))
(other-window-view (window-start)))
;; Move back to the original window
(other-window -1)
;; Call the specified function (e.g., embark-dwim, ivy-call...)
(funcall func)
;; Switch back to the other window
(other-window 1)
(unless (eq (selected-window) original-window)
(let* ((preview-buf (current-buffer)))
;; Create a new tab and switch to the preview buffer
(tab-new)
(switch-to-buffer preview-buf)
;; Go back to the original tab
(tab-bar-select-tab original-tab-index)
;; Restore the state of the other window
(select-window other-window)
(switch-to-buffer other-window-buf)
(goto-char other-window-point)
(set-window-start nil other-window-view)
;; Switch to the original window
(select-window original-window))))))


## Open Vertico, Consult, and Embark candidate in a new tab (embark-dwim)
For users of Vertico/Consult/Embark, the following function opens the default Embark action buffer in a new tab using embark-dwim:
(defun tab-new-embark-dwim ()
"Open embark-dwim in a new tab."
(interactive)
(tab-new-func-other-window-buffer #'embark-dwim))


You can add the following key mapping to Vertico:
(keymap-set vertico-map "C-t" #'tab-new-embark-dwim)


For Emacs Evil users, you can also add the following mappings:
(evil-define-key 'normal vertico-map (kbd "t") 'tab-new-embark-dwim)
(evil-define-key '(insert normal) vertico-map (kbd "C-t") 'tab-new-embark-dwim)


## Open Ivy, Counsel candidates in a new tab (ivy-call)
For users of Counsel/Ivy, the following function opens the current Ivy candidate buffer in a new tab:
(defun tab-bar-new-ivy-call ()
"Open ivy-call in a new tab."
(interactive)
(tab-new-func-other-window-buffer #'ivy-call))


You can add the following key mapping to ivy-minibuffer-map:
(keymap-set ivy-minibuffer-map "C-t" #'tab-bar-new-ivy-call)


For Emacs Evil users, you can also add the following mappings:
(evil-define-key 'normal ivy-minibuffer-map (kbd "t") 'tab-bar-new-ivy-call)
(evil-define-key '(insert normal) ivy-minibuffer-map (kbd "C-t") 'tab-bar-new-ivy-call)


## Links
- Original Article: Emacs: Open a Vertico/Consult or Ivy/Counsel candidate in a new tab

https://redd.it/182d7l8
@r_emacs

Читать полностью…

/r/emacs

My GTD Workflow in emacs

Hey all, I show how I use emacs with GTD (Getting Things Done)

https://youtu.be/92PCxH29UCo

I'm highly curious if anyone has some tips on how to make it better :)

Note: There is a package called org-gtd which was not around when I started using GTD so I made my own way of doing things

https://redd.it/18nwrr9
@r_emacs

Читать полностью…

/r/emacs

Living Programmably
https://youtu.be/vhotxmO3NkQ

https://redd.it/18nqihe
@r_emacs

Читать полностью…

/r/emacs

Enabling python-ts modę causes my Emacs memory usage to blow up

Hello fellow Emacs enthusiasts,

I'm reaching out to see if there's anyone here who's successfully integrated a modern development environment within Emacs for Python programming. Specifically, I'm interested in a setup that incorporates eglot, tree-sitter and company.

I've encountered a significant issue: whenever I enable python-ts-mode, Emacs consumes all my system's memory and crashes. While I've managed to use a more basic setup that limits tree-sitter to syntax highlighting only, I can't shake the feeling that I'm missing out on some great functionality.

To help with investigation:

I am running on a Mac
The bare minimum to reproduce this problem is on the following gist: https://gist.github.com/hnarayanan/a6397d6723fce19e2802d4305071e611
I happen to use Emacs from MacPorts, but to double-check, I also attempted to download it from [https://emacsformacosx.com](https://emacsformacosx.com) and it crashed in the same way
This seems to happen independent of the language server used in the backend. I intend on using python-lsp-server, but it fails even if I don't have it installed.

Has anyone faced a similar problem and found a solution? Perhaps I am doing something very wrong with my config? I'm eager to learn from your experiences and would greatly appreciate any advice or tips you can offer.

Thank you!

https://redd.it/1848h8w
@r_emacs

Читать полностью…

/r/emacs

issue when running with ob-async



https://redd.it/184873w
@r_emacs

Читать полностью…

/r/emacs

What is the point of using Vterm or Eat?



https://redd.it/1844y7c
@r_emacs

Читать полностью…

/r/emacs

Is the async functionality already merged?

Im looking at the org babel WORG webpage on running shell code and it says there that we can run shell command asynchronously. However, when I try some of the examples in my machine, the async is completely ignored. Am I supposed to install something else?

https://redd.it/183w6w2
@r_emacs

Читать полностью…

/r/emacs

How to show what separates emacs from other IDEs

I talked to someone about the extensibility of emacs, but the person I was speaking to assumed that any IDE is just as extensible by using Plug Ins.

Without turning the conversation into a university style lecture, what is one or two simple actions I can do in emacs to show someone what separates it from other IDES.

https://redd.it/183hud4
@r_emacs

Читать полностью…

/r/emacs

Does org have a command to hide all the drawers and just show the headline and the text below the properties drawers?



https://redd.it/1833v30
@r_emacs

Читать полностью…

/r/emacs

Emacs alternative for window animations like these?
https://redd.it/182yygu
@r_emacs

Читать полностью…

/r/emacs

Using local language server for remote files

Hi, I’ve been banging my head against something and I figured I’d ask for help.

I open files over tramp and use a remote login machine to do that. Said login machine is shared by many people and thus I can’t run a language server on it. I’d like to use eglot but don’t want to run the language server on it.

I’ve been trying to either run the language server on a computer machine (another remote one) or on my local Mac (Mac would be preferable).

Has anyone managed to point a language server running on a local Mac to files over ssh?

https://redd.it/182t7ln
@r_emacs

Читать полностью…

/r/emacs

Hello lag, my old friend

>A "I just want no input lag no matter how many packages I install. Its a frigging editor after all!! Is that too much to ask??"

>B "Yes. (it's an OS btw)"

>A "Sigh."

https://redd.it/182mlqt
@r_emacs

Читать полностью…

/r/emacs

“C-x C-e for Java”: Inline eval of Java exprs to produce a gallery app

Just as C-x C-e evaluates ELisp code, this ±10min Youtube video shows how C-x C-j evaluates inline Java code to build a gallery app.

This is done with Emacs slurping text from any buffer and barfing it into the standard Java repl, run in a background process. These phases are glued together using the repl-driven-development.el package.

https://redd.it/182caml
@r_emacs

Читать полностью…

/r/emacs

emacs not responding to keystrokes, only showing in terminal mac

0

hi all,

I installed emacs using

brew install --cask emacs

when I launch Emacs from the terminal with

emacs

None of the keystrokes respond in emacs and all show up in the terminal window.

I'm running:

Macbook pro m3 max
Sonoma 14.1 (23B2073)

Never had this problem when emacs was previously installed on my macs. Any ideas on what the issue might be?

thank you

https://redd.it/182gyct
@r_emacs

Читать полностью…

/r/emacs

Coding system warning prompt when saving GPG file

I'm running into an issue where Emacs (Spacemacs if relevant) would complain about invalid UTF-8 characters in the temp file buffer that was generated when saving a file I was editing with EPA. Telling me to select a fallback coding system.


These default coding systems were tried to encode the following problematic characters in the buffer ‘ *temp file*’:

Coding System Pos Codepoint Char

utf-8 1 #x3FFF84 �
...


I don't think this makes sense, obviously the encrypted file would have bad UTF-8 characters but why would Emacs complain about this? This file is an org-mode file that was encrypted with GPG. The warning pops up reliably a few seconds after I save, and sporadically when I'm editing. It is making it unusable because it pops up even after I select an option.

Any suggestion on where I could even begin to try fixing this?

https://redd.it/182cyrx
@r_emacs

Читать полностью…

/r/emacs

Teaching a 𝒥𝒶𝓋𝒶 runtime to be an image gallery application (REPL Driven Development, ~10mins)
https://www.youtube.com/watch?v=dbzKlgQXryE

https://redd.it/1829vxv
@r_emacs

Читать полностью…
Subscribe to a channel