Lint window.el
- remove "Emacs" from description - add Version, URL, Package-Requires sections - prefer `window-` prefix to `window/`
This commit is contained in:
		
							parent
							
								
									84d6fb8f39
								
							
						
					
					
						commit
						b09980f681
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -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)) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue