about summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·39+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·42+0100
commitb09980f6813c4a7fc95b6e3accf96e57831c691f (patch)
tree674ac9b47a3f83439831cca25ffa99ee1d801413 /emacs
parent84d6fb8f39da41ea3f908b6cbe95c9c9bb4d81f1 (diff)
Lint window.el
- remove "Emacs" from description
- add Version, URL, Package-Requires sections
- prefer `window-` prefix to `window/`
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/wpc/window.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/emacs/.emacs.d/wpc/window.el b/emacs/.emacs.d/wpc/window.el
index 132156bc4465..707641c6ff73 100644
--- a/emacs/.emacs.d/wpc/window.el
+++ b/emacs/.emacs.d/wpc/window.el
@@ -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>
+;; Version: 0.0.1
+;; URL: https://git.wpcarro.dev/wpcarro/briefcase
+;; Package-Requires: ((emacs "25.1"))
 
 ;;; Commentary:
 ;; Utilities to make CRUDing windows in Emacs easier.
@@ -18,7 +22,7 @@
 ;; Library
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
-(defun window/find (name)
+(defun window-find (name)
   "Find a window by the NAME of the buffer it's hosting."
   (let ((buffer (get-buffer name)))
     (if (maybe/some? buffer)
@@ -27,9 +31,9 @@
 
 ;; TODO: Find a way to incorporate these into function documentation.
 (macros/comment
- (window/find "*scratch*"))
+ (window-find "*scratch*"))
 
-(defun window/delete (window)
+(defun window-delete (window)
   "Delete the WINDOW reference."
   (delete-window window))