Skip to content

Commit

Permalink
chore: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay committed May 22, 2024
1 parent 8f316aa commit 89f5fa2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions parinfer-rust-changes.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
changes))

(defun parinfer-rust--fetch-changes (id)
"Fetch changes for current buffer using signal ID."
"Fetch change for current buffer using signal ID."
(track-changes-fetch id
(lambda (start end before)
(if parinfer-rust--disable
Expand All @@ -111,7 +111,7 @@
parinfer-rust--changes))))))

(defun parinfer-rust--changes-signal (id &optional distance)
"Signal changes for ID with optional DISTANCE."
"Signal change for ID with optional DISTANCE."
(parinfer-rust--fetch-changes id)
(if distance
;; We're still in the middle of changes, but they're "far",
Expand Down
1 change: 1 addition & 0 deletions parinfer-rust-helper.el
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ mode to better emulate users."
(cond ((< num 0) 0)
((> num max) max)
(t num))))

(defun parinfer-rust--defer-loading (&rest _)
"Defer loading of `parinfer-rust-mode' until the buffer is in focus."
;; This is a parinfer enabled buffer that started in the background and has now been moved to the foreground
Expand Down
25 changes: 12 additions & 13 deletions parinfer-rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,18 @@ See `parinfer-rust--option-type' for a more complete explanation of the options.
:type parinfer-rust--option-type
:group 'parinfer-rust-mode)

;;;;;;;;;;;;;;;;;;;;;;;;;
;; Setup
;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'parinfer-rust parinfer-rust-library t)
(require 'parinfer-rust-changes)

(require 'subr-x)
(require 'font-lock)

(defconst parinfer-rust--mode-types '("indent" "smart" "paren")
"The different modes that parinfer can operate on.")

(defvar parinfer-rust-major-mode-options
(list 'clojure-mode parinfer-rust-clojure-options
'clojurec-mode parinfer-rust-clojure-options
Expand All @@ -399,19 +411,6 @@ See `parinfer-rust--option-type' for a more complete explanation of the options.
For more information see `parinfer-rust--option-type'")

;;;;;;;;;;;;;;;;;;;;;;;;;
;; Setup
;;;;;;;;;;;;;;;;;;;;;;;;;

(defconst parinfer-rust--mode-types '("indent" "smart" "paren")
"The different modes that parinfer can operate on.")

(require 'parinfer-rust parinfer-rust-library t)
(require 'parinfer-rust-changes)

(require 'subr-x)
(require 'font-lock)

;; Check version and prompt to download latest version if out of date
;; Problem: Emacs can't reload dynamic libraries, which means that if we
;; download a new library the user has to restart Emacs for changes to take effect.
Expand Down

0 comments on commit 89f5fa2

Please sign in to comment.