about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·49+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·49+0100
commitc78b2339f9196c1f521d159892f84dab384d31d5 (patch)
treeb738125f7e75fc4078b2b8c69770627a3c1bd020 /emacs/.emacs.d/wpc
parent8d02e5a5ef2d4c578a56ff10a0e99bf4ffe40d48 (diff)
Lint region.el
Business as usual...
Diffstat (limited to 'emacs/.emacs.d/wpc')
-rw-r--r--emacs/.emacs.d/wpc/region.el8
-rw-r--r--emacs/.emacs.d/wpc/wpc-misc.el3
2 files changed, 8 insertions, 3 deletions
diff --git a/emacs/.emacs.d/wpc/region.el b/emacs/.emacs.d/wpc/region.el
index a2119b4c96ce..80cd9a273fcd 100644
--- a/emacs/.emacs.d/wpc/region.el
+++ b/emacs/.emacs.d/wpc/region.el
@@ -1,5 +1,9 @@
-;;; region.el --- Functions for working with Emacs's regions -*- lexical-binding: t -*-
+;;; region.el --- Functions for working with regions -*- lexical-binding: t -*-
+
 ;; Author: William Carroll <wpcarro@gmail.com>
+;; Version: 0.0.1
+;; Package-Requires: ((emacs "24"))
+;; Homepage: https://user.git.corp.google.com/wpcarro/briefcase
 
 ;;; Commentary:
 ;; Sometimes Emacs's function names and argument ordering is great; other times,
@@ -11,7 +15,7 @@
 ;; Library
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
-(defun region/to-string ()
+(defun region-to-string ()
   "Returns the string in the active region."
   (buffer-substring-no-properties (region-beginning)
                                   (region-end)))
diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el
index b5ecff44b939..dfa86c2ae139 100644
--- a/emacs/.emacs.d/wpc/wpc-misc.el
+++ b/emacs/.emacs.d/wpc/wpc-misc.el
@@ -14,6 +14,7 @@
 (require 'f)
 (require 'dash)
 (require 'constants)
+(require 'region)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Configuration
@@ -231,7 +232,7 @@
   (defun wpc-misc-deadgrep-region ()
     "Run a ripgrep search on the active region."
     (interactive)
-    (deadgrep (region/to-string)))
+    (deadgrep (region-to-string)))
   (defun wpc-misc-deadgrep-dwim ()
     "If a region is active, use that as the search, otherwise don't."
     (interactive)