Lint window.el

- remove "Emacs" from description
- add Version, URL, Package-Requires sections
- prefer `window-` prefix to `window/`
This commit is contained in:
William Carroll 2020-08-31 14:39:44 +01:00
parent 84d6fb8f39
commit b09980f681

View file

@ -1,5 +1,9 @@
;;; window.el --- Working with Emacs windows -*- lexical-binding: t -*- ;;; window.el --- Working with windows -*- lexical-binding: t -*-
;; Author: William Carroll <wpcarro@gmail.com> ;; Author: William Carroll <wpcarro@gmail.com>
;; Version: 0.0.1
;; URL: https://git.wpcarro.dev/wpcarro/briefcase
;; Package-Requires: ((emacs "25.1"))
;;; Commentary: ;;; Commentary:
;; Utilities to make CRUDing windows in Emacs easier. ;; Utilities to make CRUDing windows in Emacs easier.
@ -18,7 +22,7 @@
;; Library ;; Library
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun window/find (name) (defun window-find (name)
"Find a window by the NAME of the buffer it's hosting." "Find a window by the NAME of the buffer it's hosting."
(let ((buffer (get-buffer name))) (let ((buffer (get-buffer name)))
(if (maybe/some? buffer) (if (maybe/some? buffer)
@ -27,9 +31,9 @@
;; TODO: Find a way to incorporate these into function documentation. ;; TODO: Find a way to incorporate these into function documentation.
(macros/comment (macros/comment
(window/find "*scratch*")) (window-find "*scratch*"))
(defun window/delete (window) (defun window-delete (window)
"Delete the WINDOW reference." "Delete the WINDOW reference."
(delete-window window)) (delete-window window))