Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr3908 :: Emacs package curation, part 2

Let's go through every single package installed in my Emacs configuration. File 2 of 3.

<< First, < Previous, , Latest >>

Hosted by dnt on 2023-07-26 is flagged as Clean and is released under a CC-BY-SA license.
emacs, elisp. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr3908

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:11:07

general.

We discuss the packages installed in the second of three files that make up my emacs config.

;;; init-base.el ---  The basics
;;; Commentary:
;;; Packages for my personal and work laptop, but not termux.

;;; Code:

;;;;;;;;;;;;;;;
;;; Writing ;;;
;;;;;;;;;;;;;;;

;; Focused writing mode
(use-package olivetti
  :hook (olivetti-mode . typewriter-mode-toggle)
  :bind ("C-x C-w" . olivetti-mode)
  :custom (olivetti-body-width 64)
  :config
      (defvar-local typewriter-mode nil
      "Typewriter mode, automatically scroll down to keep cursor in
      the middle of the screen. Setting this variable explicitly will
      not do anything, use typewriter-mode-on, typewriter-mode-off
      and typewriter-mode-toggle instead.")
      (defun typewriter-mode-on()
      "Automatically scroll down to keep cursor in the middle of screen."
        (interactive)
        (setq-local typewriter-mode t)
        (centered-cursor-mode +1))
      (defun typewriter-mode-off()
      "Automatically scroll down to keep cursor in the middle of screen."
        (interactive)
        (kill-local-variable 'typewriter-mode)
        (centered-cursor-mode -1))
      (defun typewriter-mode-toggle()
        "Toggle typewriter scrolling mode on and off."
        (interactive)
        (if typewriter-mode (typewriter-mode-off) (typewriter-mode-on))))

(use-package centered-cursor-mode)

;; Check for weasel words and some other simple rules
(use-package writegood-mode
  :bind ("C-c g" . writegood-mode))

;; spellchecking
(use-package flyspell-correct
  :after flyspell
  :bind (:map flyspell-mode-map
              ("C-;" . flyspell-correct-wrapper)))

;; show correction options in a popup instead of the minibuffer
(use-package flyspell-correct-popup
  :after (flyspell-correct))

;online thesaurus service from powerthesaurus.org
(use-package powerthesaurus)

;; WordNet Thesaurus replacement
(use-package synosaurus
  :custom (synosaurus-choose-method 'default)
  :config (when window-system
            (if (string= (x-server-vendor) "Microsoft Corp.")
              (setq synosaurus-wordnet--command "C:\\Program Files (x86)\\WordNet\\2.1\\bin\\wn.exe"))))

;; WordNet search and view
(use-package wordnut
  :bind ("C-c s" . wordnut-search)
  :config (when window-system
            (if (string= (x-server-vendor) "Microsoft Corp.")
                (setq wordnut-cmd "C:\\Program Files (x86)\\WordNet\\2.1\\bin\\wn.exe"))))

;; fill and unfill with the same key
(use-package unfill
  :bind ("M-q" . unfill-toggle))

;; Markdown...
(use-package markdown-mode)

;;;;;;;;;;;;;;
;;; Coding ;;;
;;;;;;;;;;;;;;

;; Syntax checking
(use-package flycheck
  :diminish
  :init (global-flycheck-mode))

(use-package flycheck-popup-tip
  :after (flycheck)
  :hook (flycheck-mode-hook . flycheck-popup-tip-mode))

;; Web design
(use-package emmet-mode
  :hook (sgml-mode . emmet-mode) ;; Auto-start on any markup modes
        (css-mode . emmet-mode)) ;; enable Emmet's css abbreviation.

(use-package sass-mode)

(use-package web-mode)

;; Python
(use-package python
  :mode ("\\.py\\'" . python-mode)
  :interpreter ("python" . python-mode))

;; highlight todo items everywhere
(use-package hl-todo
  :straight (:host github :repo "tarsius/hl-todo")
  :custom (hl-todo-keyword-faces
             `(("FIXME" error bold)
             ("STUB" error bold)
             ("REPLACETHIS" error bold)
             ("REVISIT" error bold)))
          (hl-todo-exclude-modes nil)
  :config (add-to-list 'hl-todo-include-modes 'org-mode)
  :init (global-hl-todo-mode))

;; git
(use-package magit)

(use-package git-timemachine)

;; rest APIs via org source block
(use-package ob-restclient)

;;; END ;;;

(provide 'init-base)
;;; init-base.el ends here

Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?