0 Followers
0 Following
0 Posts

Automatically Export Emacs SES Files to TSV

https://lemmy.world/post/42277494

Automatically Export Emacs SES Files to TSV - Lemmy.World

I thought this might be useful for anyone who might want to use the Simple Emacs Spreadsheet [https://www.gnu.org/software/emacs/manual/html_mono/ses.html]. Since .ses files are only useful in Emacs and many would likely wish to access the data from other tools, you can set up Emacs to automatically export the data to tab-separated values with the following: First, Add a hook to the after-save-hook (here with use-package: :hook (after-save-hook . my/ses-export) Second, add this function to your Emacs init file(s): (defun my/ses-export () (interactive) (when (eq major-mode 'ses-mode) (mark-whole-buffer) (ses-export-tsv (point-min) (point-max)) (let ((save-name (concat (file-name-sans-extension (buffer-file-name (current-buffer))) ".tsv"))) (with-temp-buffer (yank) (write-file save-name))))) And there you have it, your .ses files will always have a human-readable .tsv file exported on each save.

Emacs BUI (Buffet User Interface)

https://lemmy.world/post/35464748

Emacs BUI (Buffer User Interface) - Lemmy.World

Found this gem of a package that make is really easy to make quick user interfaces with Emacs. The package defines some really massive macros that make it easy to set up the a tabulated list that links to an info buffer. The documentation and examples took me a while to understand but now that I feel that I have a better understanding of it, I think I would recommend it. If something like this is implemented in more packages I think it might allow for quick generation of tools to do more things without leaving Emacs and provide a consistent across the board UI. It doesn’t seem like the package has been updated much recently. One thing that might make a the package a little better is to integrate transient menus rather than the current pop up that shows the default keybinds. Thought I would share. Perhaps I will see if I can write a tutorial on it at some point as it took me a while to understand how this package works. Being a large macro meant it took me a long time to understand how it transformed my code. Perhaps a tutorial with an example of the code expansion will be beneficial to others.

GitHub - TheTimeTombs/TrAPT: Interact with the APT (Advanced Package Tool) with Emacs Transient menus. tablists, and Org mode

https://lemmy.world/post/30599805

GitHub - TheTimeTombs/TrAPT: Interact with the APT (Advanced Package Tool) with Emacs Transient menus. tablists, and Org mode - Lemmy.World

A simple tool using transient menus for those who want to manage the advanced package tool (Debian, Ubuntu, Mint, etc.) from Emacs. A few highlights: Display results from apt list in a tablist buffer and mark packages for other apt operations Export apt list to Org mode and mark packages for install/removal/purge etc… with TODO keywrods Run apt on a remote system with tramp and ssh, select remotes with completion Mark packages in your config requiring external dependencies and generate a tablist report of external programs and their paths (similar to whicher) Requires Emacs 28.1 or newer

For those who don’t know. Emacs has a built in spreadsheet called Simple Emacs Spreadsheets or SES

Alternatively, tables in Org mode can also be set up to act like spreadsheets as well and they come with robust options for calculations, plotting with Gnuplot, or importing the data into source code blocks.

SES: Simple Emacs Spreadsheet

SES: Simple Emacs Spreadsheet

Emacs Weekly Tips, Tricks, or Questions

https://lemmy.world/post/28587398

Emacs Weekly Tips, Tricks, or Questions - Lemmy.World

This post is a weekly opportunity to start a conversation on Emacs. Post any new tips, tricks, or questions you have for the community.

If you want to increase the speed of Emacs and you have a lot of Emacs Lisp files in your .emacs.d directory, compile angel is a neat tool that will compile your Emacs Lisp files so that it runs faster.

Compile Angel

GitHub - jamescherti/compile-angel.el: Speed up Emacs: Auto Byte/Native-Compile all Elisp files (Alternative to: auto-compile)

Speed up Emacs: Auto Byte/Native-Compile all Elisp files (Alternative to: auto-compile) - jamescherti/compile-angel.el

GitHub

Emacs Weekly Tips, Tricks, or Questions

https://lemmy.world/post/28234011

Emacs Weekly Tips, Tricks, or Questions - Lemmy.World

This post is a weekly opportunity to start a conversation on Emacs. Post any new tips, tricks, or questions you have for the community.

Here is a quick trick to start. I recently discovered the identity function in Emacs lisp which can be useful when combined with other Emacs lisp functions. For instance, to take any Emacs lisp list and create a string separated by a space, you can do the following:

(mapconcat #'identity my list " ")

Very useful for making lisp to create strings that work on the command line.

Emacs Weekly Tips, Tricks, or Questions

https://lemmy.world/post/27635499

Emacs Weekly Tips, Tricks, or Questions - Lemmy.World

This post is a weekly opportunity to start a conversation on Emacs. Post any new tips, tricks, or questions you have for the community.