Spyke

Automatically Export Emacs SES Files to TSV

I thought this might be useful for anyone who might want to use the Simple Emacs Spreadsheet. 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 ()
    "Save a .ses file to a .tsv file in the same working directory."
    (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.

View original on lemmy.world

Emacs BUI (Buffer User Interface)

Found this gem of a package that make it 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.

Emacs BUI (Buffer User Interface)https://gitlab.com/alezost-emacs/buiOpen linkView original on lemmy.world

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

A simple tool using transient menus for those who want to manage the advanced package tool (Debian, Ubuntu, Mint, etc.) from Emacs.

Some 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 whiche

Requires Emacs 28.1 or newer

GitHub - TheTimeTombs/TrAPT: Interact with the APT (Advanced Package Tool) with Emacs Transient menus. tablists, and Org modehttps://github.com/TheTimeTombs/TrAPTOpen linkView original on lemmy.world

Any pointers on browsing lemmy with emacs?

A quick glance suggested that the lem package is a good option but I've been struggling to get it to work. When I launch it I put the username as @steeznson:lemmy.world but this returns a 404.

Can't find any docs after a quick google search and also struggling to track anything down in the emacs built in docs.

Lastly, unrelated, I wanted to shout out the emacs client for mastodon. It's great!

View original on lemmy.world
emacs | Spyke