hamacs/ha-aux-apps.org
2022-11-15 11:07:18 -08:00

4.7 KiB

Auxillary and Optional Applications

A literate programming file for helper apps in Emacs.

Introduction

The following applications are not needed. I alternate between trying to stay in Emacs taking advantage of the consistent interface, and using a stand-alone app on my Workday computer.

Twitter

The venerable twittering-mode allows me to follow all the twits.

  (use-package twittering-mode
    :init
    (setq twittering-use-master-password t
          epa-pinentry-mode 'loopback)
    :config
    (defalias 'epa--decode-coding-string 'decode-coding-string)
    (ha-leader "a t" '("twitter" . twit)))

Mastodon

Glad to see the 2FA feature is working on the mastodon.el project:

  (use-package mastodon
    :straight (:repo "https://codeberg.org/martianh/mastodon.el")
    :init
    (setq mastodon-instance-url "https://emacs.ch"
          mastodon-active-user "howard")
    :config
    (mastodon-discover)
    (ha-leader "a m" 'mastodon))

Now I need to make a function to paste the same message to both while we make a transition.

Telega

I'm thinking the Telega package would be better than Bitlbee for Telegram communication. Seems to have a bug on the Melpa version, so I'm keeping this to the HEAD, if I've cloned it.

  (when (file-exists-p "~/other/telega.el")
    (use-package telega
      :straight (:local-repo "~/other/telega.el")
      :commands (telega)
      :init
      (setq telega-use-images nil)
      :config
      (ha-leader "a T" 'telega)))

For some reason, you need rainbow-identifiers to work, oh, I guess the docs state this.

RPG DM

Been working on my RPG DM project for getting Emacs helping as a Dungeon Master's Assistant. The idea is to be able to roll dice and whatnot. What I find most useful is the random tables.

  (when (f-directory? "~/other/rpgdm")
    (use-package rpgdm
      :straight (:local-repo "~/other/rpgdm")
      :commands (rpgdm-mode rpgdm-tables-load)
      :init (setq rpgdm-base (expand-file-name "~/other/rpgdm"))
      :config (ha-leader "t D" '("rpg dm" . rpgdm-mode))))

And my new Ironsworn project expands on it, giving me both the Oracles and the Moves. With an Org file, I can easily play Solo:

  (when (f-directory? "~/other/emacs-ironsworn")
    (use-package rpgdm-ironsworn
      :after rpgdm
      :straight (:local-repo "~/other/emacs-ironsworn")
      :init
      (setq rpgdm-ironsworn-project (expand-file-name "~/other/emacs-ironsworn")
            ;; Ignore org links that call my RPG functions:
            org-link-elisp-skip-confirm-regexp (rx string-start (optional "(") "rpgdm-"
                                                   (or "tables-" "ironsworn-")
                                                   (one-or-more any)))))

The project is interesting, and I should record a tutorial how to use it.