r_emacs | Unsorted

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

-

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

Subscribe to a channel

/r/emacs

State of MH-E

Is MH-E still maintained, what are the advantages of using MH-E, or nmh, in general over something like gnus or notmuch?

https://redd.it/1beh35s
@r_emacs

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

/r/emacs

Release v0.7 · listen.el (Audio/music player for Emacs)
https://github.com/alphapapa/listen.el/releases/tag/v0.7

https://redd.it/1bedgbe
@r_emacs

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

/r/emacs

Notmuch tree from notmuch-hello or notmuch-jump ?

Anybody else use notmuch treeview here?

I have a bunch of saved searches, which I configure like this:

(push '(:name "Personal Unscreened"
:query "tag:inbox AND tag:unread AND (NOT query:screened-addresses)"
:key "u"
:search-type 'tree)
notmuch-saved-searches)

Regardless of whether I set :search-type to 'tree or "tree", when I select the search (either from notmuch-hello or notmuch-jump) it opens the search in search view (notmuch-search-mode), instead of tree view (notmuch-tree-mode).

When in search view, I can press 'Z' to get to the tree-view (notmuch-tree-from-search-current-query), but it's another step and creates another buffer, and I'm trying to get the search to start in tree view directly.

I'm new to notmuch, so I'm probably doing something wrong. Does anybody have any ideas? Or should I join the notmuch mailing list and ask there?

(Edit: formatting)

https://redd.it/1be7cnd
@r_emacs

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

/r/emacs

Wanted: three "connected" babel blocks for Org-mode demo

Hi,

I'm about to give a demo on how to maintain an engineering diary and a knowledge base. Of course, this will be an **Org-mode demo**. There won't be any public recording but I might publish the Org-mode source in a proper format on Github later-on.

For showing off, I'd like to add **three babel blocks** to demo the pseudo-literate programming part within a minute or so. I'm not that creative, so I'd love to see your ideas on that. Bonus: if the content is relevant to engineers/devops/admins.

My idea for this part: each block is using a different language (shell, python, ?). Each block generates some kind of data which is **human-readable** (e.g., as a nice table or at least some data the viewers are able to **understand quickly**). The next block takes the result from the previous and adds some processing. In the end, there is a nice graphics to display.

I'd go for: first block generates some data. Second does some processing. Third does some visualization that results in a PNG file I can directly view within the buffer.

I once did something like this with "du -h", filter the result likes and visualize using R. Simple, easy to explain. Unfortunately, I'm not happy with that any more. Partly because almost nobody of my colleagues is using R (including myself). See my non-working draft below.

I'd love to have this as simple as possible so that I'm able to explain and demo it really quick (I've got so much to cover and I don't want to explain everythin in detail, just teasers). Furthermore, it would be peachy when there isn't much dependency setup going on. I don't want NPM or whatever this Javascript thingy is. I do have shells (bash, zsh), Python and I may install something popular in addition to that if the story is well enough.

Do you have any proposals for me?

My non-working draft:

#+NAME: disk-usage
#+BEGIN_SRC bash
df -h
#+END_SRC

#+NAME: root-disk-usage
#+BEGIN_SRC perl :var my-disk-usage=disk-usage
use strict;
use warnings;

chomp($my-disk-usage);

if ($my-disk-usage) {
my @lines = split("\n", $output);
foreach my $line (@lines) {
if (index($line, '/') == 0) {
next;
} else {
print "$line\n";
}
}
}
#+END_SRC

#+BEGIN_SRC r :var my-root-disk-usage=root-disk-usage
library(ggplot2)
myoutput <- my-root-disk-usage
colnames(myoutput) <- c('mountpoint', 'used', 'avail', 'pct')
ggplot(data = myoutput, aes(x='', y=pct, fill=mountpoint)) + geom_bar(stat='identity') + coord_polar() + theme_void() + labs(title="Disk Usage", x='', y='Percentage Used')
#+END_SRC

https://redd.it/1be6cam
@r_emacs

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

/r/emacs

Path problems with org-preview-latex

I have a strange problem in org-mode, where org-preview-latex (including org-fragtog) only works when working in some directories - most annoyingly, it does not work in any subdirectory of the directory where most of my work projects are kept. I have no idea what causes this. It does not matter where the file I am working on is located, it is the current working directory when generating the previews. that matters.

I have org-preview-latex-image-directory set to a single folder in my .emacs.d, but when I am not working in one of the offending directories, the error message I get seems to be that dvipng is looking for dvi files in /tmp/, where they are not found. I have tried to look for relevant variables that might be accidentally set somewhere, but I couldn't find any (but I also don't know what I would look for).

Does anyone have any idea what is going on here? It is driving me absolutely nuts.

Value of my org-preview-latex-process-alist is:

((dvipng :programs
("latex" "dvipng")
:description "dvi > png" :message "you need to install the programs: latex and dvipng." :image-input-type "dvi" :image-output-type "png" :image-size-adjust
(1.0 . 1.0)
:latex-compiler
("latex -interaction nonstopmode -output-directory %o %f")
:image-converter
("dvipng -D %D -T tight -o %O %f")
:transparent-image-converter
("dvipng -D %D -T tight -bg Transparent -o %O %f"))
(dvisvgm :programs
("latex" "dvisvgm")
:description "dvi > svg" :message "you need to install the programs: latex and dvisvgm." :image-input-type "dvi" :image-output-type "svg" :image-size-adjust
(1.7 . 1.5)
:latex-compiler
("latex -interaction nonstopmode -output-directory %o %f")
:image-converter
("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O"))
(imagemagick :programs
("latex" "convert")
:description "pdf > png" :message "you need to install the programs: latex and imagemagick." :image-input-type "pdf" :image-output-type "png" :image-size-adjust
(1.0 . 1.0)
:latex-compiler
("pdflatex -interaction nonstopmode -output-directory %o %f")
:image-converter
("convert -density %D -trim -antialias %f -quality 100 %O")))

https://redd.it/1bdtz2d
@r_emacs

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

/r/emacs

How to disable the warning "File xxxx is large (yy Mb), really open" for some filetypes

Hi,
I have configured openwith on Windows emacs to open zip files with 7zip.
I do not care how large my zip archive is, 7zip is able to handle very big files.

Is there a possibility to disable this warning only for files from type 'zip'?
I have looked in the variables, but I have no idea how the variable may have been named.
Warning-smth... I guess...

thanks for your help!

https://redd.it/1bdvd9o
@r_emacs

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

/r/emacs

Data Visualization with GNU Emacs

&#x200B;

https://preview.redd.it/4h75fnl3e4oc1.png?width=1280&amp;format=png&amp;auto=webp&amp;s=d8cf2ee158a43ef8932af59a24f32fd783deb359

Quick data visualization in combination with Gnuplot.

Demo: **https://youtu.be/XdXlIV2Hvk4**

Details: https://lifeofpenguin.blogspot.com/2024/03/data-visualization-with-gnu-emacs.html

https://redd.it/1bduco6
@r_emacs

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

/r/emacs

Use `dir-locals-set-class-variables` with the root directory

Hello all,

I've run into a frustrating problem when trying to use `dir-locals-set-class-variables` to set key bindings specifically for a npm projects when changing projects. It works for all files and directories **apart** from the project-root one!

Is there any way to have this key binding / minor mode apply to the project root as well as all the subdirs and files?

(use-package npm
:config
(defvar npm-project-map (make-sparse-keymap)
"Keymap for npm projects.")

(define-minor-mode npm-project-mode
"A temporary minor mode to be activated only for npm projects."
:keymap npm-project-map)

(keymap-set npm-project-map "C-c p" 'npm)

(dir-locals-set-class-variables
'npm
'((nil . ((mode . npm-project)))))

(defun setup-npm-project+ (project-root)
"Setup npm projects with `project-root'."
(when (file-exists-p (concat project-root "package.json"))
(message "setting up npm project mode")
(dir-locals-set-directory-class project-root 'npm)))

(advice-add 'project-switch-project :after #'setup-npm-project+))

https://redd.it/1bdohoy
@r_emacs

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

/r/emacs

Weekly Tips, Tricks, &c. Thread

This is a thread for smaller, miscellaneous items that might not warrant a full post on their own.

See this search for previous "Weekly Tips, Tricks, &c." Threads.

Don't feel constrained in regards to what you post, just keep your post vaguely, generally on the topic of emacs.

https://redd.it/1bdm6mc
@r_emacs

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

/r/emacs

Smart Keys work the same way on Code block and results headers.
Smart Keys on Org internal targets now work just as they do on
radio button targets.
- Support for Org 9.7 and up with newer features.
- Cycling among Org Todo states and sets of states with the Smart Keys.
- Hyperbole Doc/ files displayed in Org mode and cycle views of the
document with TAB at the start of the buffer.


# Installing and Using Hyperbole

To install within GNU Emacs, use:

&nbsp;&nbsp;&nbsp;&nbsp;{M-x package-install RET hyperbole RET}

Hyperbole installs in less than a minute and can be uninstalled even
faster if ever need be. Give it a try.

Then to invoke its minibuffer menu, use:

&nbsp;&nbsp;&nbsp;&nbsp; {C-h h} or {M-x hyperbole RET}

The best way to get a feel for many of its capabilities is to invoke the
all new, interactive FAST-DEMO and explore sections of interest:

&nbsp;&nbsp;&nbsp;&nbsp; {C-h h d d}

To permanently activate Hyperbole in your Emacs initialization file, add
the line:

&nbsp;&nbsp;&nbsp;&nbsp; (hyperbole-mode 1)

Hyperbole is a minor mode that may be disabled at any time with:

&nbsp;&nbsp;&nbsp;&nbsp; {C-u 0 hyperbole-mode RET}

See the Hyperbole home page with screenshots.

See Hyperbole use cases
or what users think about Hyperbole.

Enjoy,

The Hyperbole Team

https://redd.it/1bdh29d
@r_emacs

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

/r/emacs

|-------------------------------------------------|----------------------------------|
| Build a Zettelkasten with HyRolo | https://youtu.be/HdlCK9w-LyQ |
|-------------------------------------------------|----------------------------------|
| HyControl, fast Emacs frame and window manager | https://youtu.be/M3-aMh1ccJk |
|-------------------------------------------------|----------------------------------|
| Writing test cases for GNU Hyperbole | https://youtu.be/maNQSKxXIzI |
|-------------------------------------------------|----------------------------------|
| Find/Web Search | https://youtu.be/8lMlJed0-OM |
|-------------------------------------------------|----------------------------------|


# Use Cases

1. Create a card catalog
of published documents and reference them with simple text ids as
hyperlinks in any type of document.

2. Single Action Key press to follow URLs with section links, Markdown
links, Emacs outline heading links, Org mode links, Koutline links,
file and directory links and program identifier references.
See HTML Markdown and Emacs Outline Hash Links.

3. Jump from sections of a Table of Contents in DEMO, README and
TUTORIAL files as well as Internet RFCs to the section text.
Entries in a code library MANIFEST file work the same way. See
Table of Contents Browsing.

4. Display and edit local or remote files and directories simply by
pressing th Action Key on their names. Hyperbole will
automatically embed certain key variables in link pathnames so
that as these links are moved from site to site and the variable
values change at each site, the links are properly maintained.
See Path Suffixes and Variables
and Path Prefixes.

5. Automatically translate POSIX and MSWindows paths within buffers
or links to the right format for the current operating system,
eliminating the drudgery of converting backslashes to forward
slashes. See POSIX and MSWindows Paths.

6. Quickly search the web for targeted types of information such as
programming questions, code libraries, images, videos,
locations, word definitions, wikipedia entries or even tweets.
See Hyperbole Menus.

7. Embed social media hashtags and user names in any text files.
Then jump to the associated web page in your favorite web
browser with an Action Key press. See Social Media Hashtags
and Usernames
.

8. Similarly, you can embed github and git object links in any
files with a simple syntax and Hyperbole will display the
associated objects with an Action Key press. See
Github (Remote) References.
and Git (Local) References.

9. Fast, multi-line, record-level full-text search across files of
contacts or other record-based files in Org, Markdown, Emacs
Outline or Koutline format. Then collapse all matches to a
single line each while still seeing name, phone number and email
information. See HyRolo.

10. Select regions of structured text or source code to copy or
move them between buffers with a single mouse drag or two key
presses. These selectable things include: delimited pairs of
(), @{@}, <>, and quote marks, source code functions, source
code comments and matching tag pairs in HTML and

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

/r/emacs

Help with editing remote files over TRAMP targeting Windows hosts via ssh?

First: I've searched for solutions and experimented but without success. Hopefully you have some ideas!

The tl;dr is that I'm keen to find a way to edit files on remote Windows hosts using ssh as the protocol from a Linux host.

I'm a Linux user through-and-through but have to manage Windows boxen sometimes. Modern Windows can run sshd, though, and combined with powershell, managing remote Windows hosts is actually bearable. However, I'd prefer to edit files within my local emacs session rather than through a terminal running ssh. The challenge is finding the right C-x C-f path spec to connect to a remote ssh host that works when that target is running Windows (with all those caveats).

Some considerations:

- I know that I can connect to Windows hosts remotely via ssh correctly and passwordless. I can edit the login shell, I've tinkered with both cmd.exe and pwsh.exe without much success.
- I do have the ability to target sh.exe or bash.exe, although I haven't managed to make that work either (by changing TRAMP connection properties for the remote host)
- I assume there may be something I need to set to make the connection "aware" that the remote is Windows despite connecting over ssh, though I'm not sure what that setting might be (for example, changing a line ending setting)

I'd love any ideas or help with this.

https://redd.it/1bd2kk3
@r_emacs

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

/r/emacs

Spotted Emacs in a comic - Emacs Cultural References in the Wild

I was reading the Hacker Files and I spotted this.


From Issue 1 of the Hacker Files

The Hacker Files was about a hacker called Jack Marshall who freelances for the Government and uncovers all sorts of underhandedness. This was created by Lewis Shiner and Tom Sutton, and it seems to have been created for an informed audience. I mean, in most popular entertainment, hacking involves hoodies, fantastical visualisations to make someone typing in the terminal more interesting and so on. This comic has none of that, and yet is quite gripping.


https://redd.it/1bcxyps
@r_emacs

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

/r/emacs

Coding assistant integration

Has anyone been able to configure Copilot-like services, in my case Codeium , in their completion framework so there is less friction when using them?

IMHO in a super-capf setup it can outshout other capfs because it returns longer results which take up posframe space. Similarly, i don't want to have to change buffers to choose a suggestion, so the older completion styles seem clumsy.

After some fiddling, my best guess is that it needs a separate completion mode which shows suggestions in an overlay within the current buffer. So in place, one at a time with some ability to move up and down through the undisplayed completions via M-n / M-p and with some kind of hint in the presentation about current position in the list.

How have other folks been setting these things up?

https://redd.it/1bcxkgr
@r_emacs

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

/r/emacs

Emacs Beginner, Need Help - Vertico Recent candidate and Orderless seperator

I've been using Helm since the time I started using Emacs. A couple of weeks ago, Helm started giving me an error, and I searched for alternates and finally installed Vertico, Orderless, Consult and Embark.

Now Helm is working again, but I'd like to leave my present config as is.

What I need help with is:

1. In Helm when I M-x, I am shown the candidate from the last time I used M-x. In vertico, I have to search again, if I want the same candidate. Does anyone know how I can bring this Helm style behavior into Vertico?

2. I'm not sure if this is an orderless or vertico function. When I M-x and type in the command i'm looking for, in Helm, I don't need to enter the Hyphen. In this current setup, I need to enter a hyphen as a seperator, otherwise no matches are show. So for list-packages I need to type li-pa. li pa on its own won't work.

3. There is a horizontal bar running at the bottom of the screen, which I think shows the same candidates as in the completion list. Where is this coming from? Embark? WHat is it's purpose?

Attached image to indicate each of the points.

Thank you!

https://preview.redd.it/ng4a9eowcunc1.png?width=1366&amp;format=png&amp;auto=webp&amp;s=e512bf1e3d387b7f10e405b56a44f6bbe6c40e77

https://redd.it/1bcptaw
@r_emacs

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

/r/emacs

How do you guys track websites that you visited / blog posts?

Is there some sort of knowledge database for websites visited? Or just using org-roam / org for capturing ideas?

Also, do you save the original text in any form? I started using EWW and wondering if there are any user flows where you perform some annotations on the eww page, and then save it in your notes - similar to org-noter?

https://redd.it/1befha7
@r_emacs

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

/r/emacs

Font ligatures don't work only in org files.

I use doom emacs and prefer using font ligatures. Font ligatures appear as expected in *.scala, Dockerfile. But the ligatures do not appear in org files, scratch buffer and todo files.

Following is my configuration.
```emacs-lisp
(setq doom-font (font-spec :family "FiraCodeNerdFont" :size 16))
(after! doom-themes
(setq doom-themes-enable-bold t
doom-themes-enable-italic t))
```
What configuration is missed out?

https://redd.it/1bedo8n
@r_emacs

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

/r/emacs

Package Dependency Issues with Elpaca

Hi everyone, I use the pass package in emacs to manage my passwords. This package has password-store and password-store-otp as dependencies. After recently updating the package, a newer version of password-store-otp is required (0.1.5) and elpaca seems to be pulling in (0.1.0). This error does occur in a fresh emacs install using emacs -q, installing elpaca, and installing pass with elpaca-try.

I've tried creating a use-package block for password-store-otp to update password-store-otp by setting a specific git commit. I've tried downloading and loading a local version of password-store-otp as well. Either way pass seems to always pull in the outdated version and use that.

Is there a way to make sure dependencies are updated with elpaca? Thanks for any help!

https://redd.it/1be9elr
@r_emacs

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

/r/emacs

Some meow configuration for friendlier LaTeX editing
https://aatmunbaxi.netlify.app/comp/configuring_meow_friendly_latex/

https://redd.it/1bdza9f
@r_emacs

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

/r/emacs

Eglot + Rust Analyzer dies instantly

Emacs 29.2 on Void Linux no packages installed new to emacs and just trying to use vanilla.

I installed rust the suggested way using the curl command on their site and went to try eglot and it couldn't find the rust-analyzer binary I check in my terminal and it seems rust doesn't include it.

I did some searching and found some Github issues suggesting downloading the binary and adding it to my PATH so I did.

Now eglot finds it and suggests it can use it when I do M-x elgot, I confirm but it dies instantly.

There's no error information in the error message it just says ` [eglot\] -1: Server died`

Any help would be appreciated, Thanks!

Edit: I found another post suggesting I install rust mode I used package-install and tested it that way and eglot still crashes. It works fine for other languages C,C++, Python. The issue is isolated to rust-analyzer.

Edit 2: Rust analyzer works find in VSCode, Neovim, and in my terminal I'm able to call the binary without it crashing.

https://redd.it/1bdr5je
@r_emacs

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

/r/emacs

Gruvbox theme Emacs logo
https://redd.it/1bdvlhh
@r_emacs

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

/r/emacs

I don't use Emacs much anymore but I use GNU zile for everything on a terminal. Get started with Emacs for python?

I haven't used emacs for a while but Isince doing alot of python i thought it might be time to get back into it. I honestly still use zile all the time whenever on a terminal and before I had quite a heavy setup with rtags editing c++ projects.

Any good places to get started? I want to be as compatible and competitive with vscode as I can.

https://redd.it/1bdqmu3
@r_emacs

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

/r/emacs

anyone using xeft with org-roam?

when a prompt is not matched in the notes xeft allow to make a new note. I want to use it but i want to create new note just like org-roam creates new note with the default template , i have read the org-roam-node-find function and xeft-filename-fn but i am not expert enough in elisp make it work,if anyone have got it working or know how to do it i can really use your help.

https://redd.it/1bdlxcq
@r_emacs

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

/r/emacs

Considering switching to emacs from neovim

Hi all,

I have been a neovim user for two years (I write my own configs using lua). I am considering switching to emacs after going through a major youtube rabbit hole on how emacs is a production environment, the beauty of org mode, evil mode key bindings, and it is still useable in the terminal when I ssh into a remote computer (do not have to install most of the time like neovim, especially when I do not have sudo permissions).

One of the things that really made me consider switching to emacs is that for neovim, some of my plugins will break due to updates or be no longer maintained. Additionally I have no idea where the direction of neovim is going. I want something that I can customize, but also relatively stable and low maintenance. Does emacs offer this advantage?

Thanks!

https://redd.it/1bdhylx
@r_emacs

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

/r/emacs

SGML modes.
See Thing Selection.

11. Use the fantastic, auto-numbered Koutliner with per-item links
and rapidly changeable views. See Koutliner.

12. Rapidly and precisely control from the keyboard the layout and
what is displayed in your Emacs windows and frames. See
HyControl.


# What's New

What's new in version 9 is described in detail here:

www.gnu.org/s/hyperbole/HY-NEWS.html

Everything back until release 8.0.0 is new since the last major release
announcement (almost a year and a half ago), so updates are extensive.

Below is a quicker summary of major feature additions.

## Hyperbole Buttons

- Instant cross-window, typed hyperlink creation.
- Select whole regions delimited by <>, , () or {} when on any delimiter.
- Drag to display a Hyperbole button referent into a specific window.
- Hyperbole's markup pair selection now works in mhtml-mode.

## Compilation

- Native compilation is now supported with minimal warnings.
- Natively compiled functions work as button action types.
- Virtually all compilation warnings have been removed.

## Documentation

- New Hyperbole Concepts document shows how the parts interrelate.
- New video talks about Hyperbole from EmacsConf 2023 and 2022.
- Hyperbole button help now works on Emacs push-buttons as well.
- Smart Keys display flymake warnings.

## HyControl

- Move directionally through windows and frames with I/J/K/M keys.

## HyRolo

- HyRolo full-text searching of directories of Org, Markdown Koutline
and Emacs Outline files. Matching records can be expanded and
collapsed as outlines as well.
- Hyrolo searching of directories or wildcard expansions of filesets.
Paths may also include Environment or Elisp variables.
- Improved, fast movement and outlining keys for HyRolo matches.
- Consult and Helm grep package support for searching HyRolo files
and Org Roam databases.
- Run or Edebug ERT tests from the first line of their definition.
- Unique face for highlighting implicit button names.
- Lisp identifiers recognized in byte-compilation Warnings buffer,
Flymake log and diagnostics buffers.
- Now recognizes Table of Contents as cross-refs in any text-derived
major mode with the text-toc implicit button type.
- Youtube snippet links to play parts or whole Youtube videos.

## Koutliner

- Hash character, #, section references now work with klinks to
Koutline cell auto-numbers or to cell heading strings that end with
a colon or a newline.
- Org {M-S-<left>} and {M-S-<right>} tree promote and demote keys now
work in Koutline mode. See "(hyperbole)Promoting and Demoting".
- Import indented Org outlines into Koutlines. See
"(hyperbole)Inserting and Importing".

## ERT Tests

- Over 400 test cases automatically run across Emacs 27, 28, 29 and
the current git master on each Hyperbole update.
- ERT test symbol definition display within Elisp and Elisp interaction buffers.
- Button type to run any set of Emacs ERT tests with a common prefix.
- Expanded support for cross-reference following in compilation and
ERT test backtrace buffers.

## Minibuffer Keyboard Menus

- Minibuffer menu auto-column-based reformatting when lines get too long.
- Minibuffer menu movement commands now support prefix arguments.

## Org Mode Integration

- Automatic fix for mixed org versions when Hyperbole is initialized.
- Hyperbole can now link to Org links in non-Org buffers as well as to
Org and Org Roam IDs.
- Jump to Org code block header :dir directories in Dired.
- Clear results from an Org code block header.
- Auto-programming identifier lookup within code blocks.
-

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

/r/emacs

ANNOUNCE: GNU Hyperbole package major release 9 (V9.0.1) released

# Overview

Hyperbole is a single package that can significantly raise your Emacs
productivity with its broad information authoring and management
capabilities, including giving you easier access to existing Emacs
features that are hard to find or set up correctly. Give it a try
for one month and see what you think.

After an extensive year-and-a-half of development and quality-assurance,
GNU Hyperbole 9.0.1, the Rhapsody release, is now available on GNU
ELPA. And oh what a release it is: extensive new features, new video
demos, org and org roam integration, Markdown and Org file support in
HyRolo, recursive directory and wildcard file scanning in HyRolo, and
much more.

Hyperbole is like Markdown for hypertext. Hyperbole automatically
recognizes dozens of common patterns in any buffer regardless of mode
and transparently turns them into hyperbuttons you can instantly
activate with a single key. Email addresses, URLs, grep -n outputs,
programming backtraces, sequences of Emacs keys, programming
identifiers, Texinfo and Info cross-references, Org links, Markdown
links and on and on. All you do is load Hyperbole and then your text
comes to life with no extra effort or complex formatting.

But Hyperbole is also a personal information manager with built-in
capabilities of contact management/hierarchical record lookup,
legal-numbered outlines with hyperlinkable views and a unique window
and frame manager. It is even Org-compatible so you can use all of
Org's capabilities together with Hyperbole.

Hyperbole stays out of your way but is always a key press away when
you need it. Like Emacs, Org, Counsel and Helm, Hyperbole has many
different uses, all based around the theme of reducing cognitive load
and improving your everyday information management. It reduces
cognitive load by using a single Action Key, {M-RET}, across many
different contexts to perform the best default action in each.

Hyperbole has always been one of the best documented Emacs packages.
With Version 9 comes excellent test coverage: over 400 automated tests
are run with every update against every major version of Emacs since
version 27, to ensure quality. We hope you'll give it a try.


# Videos

If you prefer video introductions, visit the videos linked to below;
otherwise, skip to the next section.

| GNU Hyperbole Videos | Web Link |
|-------------------------------------------------|----------------------------------|
| Overview and Demo | https://youtu.be/WKwZHSbHmPg |
| &nbsp;&nbsp; Covers all of Hyperbole | |
| &nbsp;&nbsp; Timestamps to watch each section | |
|-------------------------------------------------|----------------------------------|
| Quick Introduction | https://youtu.be/K1MNUctggwI |
|-------------------------------------------------|----------------------------------|
| Top 10 ways Hyperbole amps up Emacs | https://youtu.be/BysjfL25Nlc |
|-------------------------------------------------|----------------------------------|
| Introduction to Buttons | https://youtu.be/zoEht66N2PI |
|-------------------------------------------------|----------------------------------|
| Linking Personal Info with Implicit Buttons | https://youtu.be/TQ_fG7b1iHI |
|-------------------------------------------------|----------------------------------|
| Powerful Productivity with Hyperbole and Org | https://youtu.be/BrTpTNEXMyY |
|-------------------------------------------------|----------------------------------|
| HyRolo, fast contact/hierarchical record viewer | https://youtu.be/xdJGFdgKPFY |
|-------------------------------------------------|----------------------------------|
| Using Koutline for stream of thought journaling | https://youtu.be/dO-gv898Vmg |

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

/r/emacs

org-id-locations file as a large-scale database unique-id store?

I've been using a package called org-brain that is using, I'm all but certain, the .org-id-locations file as its database to store graph-like relationships between org files and org headings. org-brain is a sort of graph database which adds a PROPERTIES drawer with just the ID field with a UUID to an org file, as well as to the org headings in each file. So I opened this 127k file residing in my .emacs.d directory and apparently whatever is in my org directory and has a PROPERTIES drawer with ID field winds up in .org-id-locations represented as lists in one big list, one list for each file that has one or more drawers. But you knowledgeable people here know all this already. However, it surprised me since such a format as this

(...("~/Dropbox/org/orgbfassungen/FassungenDesc.org" "1ba78dfc-d6c3-46c5-827d-37db94fa9053" "6809202d-9a4c-4ed0-87fb-798676f448fe" "f2149157-6ba1-4e24-81c3-4e070fcc5de8" "5b7c2d9a-2df8-450a-a0c8-9d3b8e703044" "f3031b9f-3708-493d-9546-f489835c9f17") ("~/Dropbox/org/orgbfassungen/Fassungen.org" "e9b683af-90b1-4ece-9afd-18dc28a9fab2")...)

where, e.g., inside the file FassungenDesc.org there are many org headings, each with a PROPERTIES/ID drawer -- and they're all associated to FassungenDesc.org with that simple list. So I'm asking if this is a good design for a really big graph database? I'd like to start using org files and their containing headings as vertices. But I'm guessing this is not really all that scalable, not really intended for such a big thing. So again, is this org-brain approach not good for anything big? I plan on having potentially thousands of org files with very many heading entries each (over a thousand perhaps per file) representing vertices. What would be a better way of databasing org files and headings? The PROPERTIES/ID drawer idea is fine for a unique key, but not throwing it all in .org-id-locations, right? But then when I look up the variable org-id-locations I see "Its value is #<hash-table equal 2515/3158 0x1558ae1dbff7>". Is this telling me that yes, this is a hash-controlled thing and might be okay after all for big things? I saw another emacs graph database (https://github.com/toshism/netz) that uses h.el hash to store graph vertices and edges.

Ancillary: If I move or delete .org-id-locations, Emacs will rebuild it, right? What is the idea behind having such a file structured this way -- other than a simple database? What else uses it?

&#x200B;

&#x200B;

&#x200B;

https://redd.it/1bd1375
@r_emacs

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

/r/emacs

Autocomplete with company and eglot (ruff-lsp)

I'm having trouble getting company to do any sort of autocompletion in my setup. I'm using the ruff-lsp language service provider and eglot. Here is my setup:

(use-package pyvenv
:ensure t
:config
(pyvenv-mode 1)
(pyvenv-activate "~/miniconda3/envs/dl/"))

(setq major-mode-remap-alist
'((python-mode . python-ts-mode)))

(add-hook 'after-init-hook 'global-company-mode)

(use-package company
:ensure t
:config
:hook (python-ts-mode . company-mode)
(setq company-idle-delay 0.01
company-minimum-prefix-length 1))

(use-package eglot
:ensure t
:defer t
:hook (python-ts-mode . eglot-ensure))

(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(python-ts-mode . ("ruff-lsp"))))


The linting through ruff-lsp seems to be working well, but when I have a partial bit of code and run "company-complete" nothing is happening. Can someone please help me resolve this?

https://redd.it/1bcyomz
@r_emacs

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

/r/emacs

Can’t find org-roam?

I’m trying to install org-roam and the package-install list only shows me org-roam-ql, org-roam-bibtex and org-roam-ui and (I’m guessing) it’s missing the ‘main’ org-roam package? I did package-refresh-content as well.

What am I doing wrong? I’m following the instructions here

https://redd.it/1bcqi7y
@r_emacs

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

/r/emacs

sops: SOPS encrypt and decrypt without leaving the editor.

https://github.com/djgoku/sops

https://redd.it/1bcp5rw
@r_emacs

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