theurgy/shared-packages.el
2026-05-31 17:47:13 +08:00

68 lines
1.8 KiB
EmacsLisp

;;; shared-packages.el --- Shared library packages -*- lexical-binding: t -*-
;; This file is not part of GNU Emacs
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; commentary
;;; Code:
;; We use this for displaying text a bit nicer in some buffers.
(use-package grid
:straight (grid :type git :host github :repo "ichernyshovvv/grid.el"))
;; This is used by nano
(use-package mini-frame)
;; Hydro, used by Treemacs
(use-package hydra)
;; All the icons
(use-package all-the-icons
:if (display-graphic-p))
;; Transient
(use-package transient)
;; Request is generally useful and a dependency for other packages
(use-package request)
;; For gomuks
(use-package websocket)
;; For per-workflow utilities
(use-package narrow-indirect)
;; Better navigation with treesitter
(use-package combobulate
:config
(defun narrow-to-defun-indirect ()
"Narrow to the current defun in an indirect buffer."
(interactive)
(combobulate-navigate-end-of-defun)
(end-of-line)
(set-mark-command nil)
(combobulate-navigate-beginning-of-defun)
(beginning-of-line)
(ni-narrow-to-region-indirect-other-window
(region-beginning)
(region-end)
(point))))
(provide 'shared-packages)
;;; shared-packages.el ends here