Skip to content

Commit

Permalink
Fix definition of buffer-local complex
Browse files Browse the repository at this point in the history
  • Loading branch information
countvajhula committed Jul 22, 2024
1 parent e038009 commit 10e3157
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 41 deletions.
1 change: 0 additions & 1 deletion rigpa-buffer-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
(require 's)
(require 'dynaring)
(require 'buffer-ring)
(require 'rigpa-local)

(defconst rigpa-buffer-ring-name-prefix "rigpa-buffer-ring")

Expand Down
36 changes: 0 additions & 36 deletions rigpa-local.el

This file was deleted.

1 change: 0 additions & 1 deletion rigpa-mode-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
(require 'chimera)
(require 'rigpa-text-parsers)
(require 'rigpa-meta)
(require 'rigpa-local)

(evil-define-state mode
"Mode state."
Expand Down
1 change: 0 additions & 1 deletion rigpa-tower-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
(require 'hydra)
(require 'rigpa-mode-mode)
(require 'rigpa-types)
(require 'rigpa-local)

;; make these buffer-local first before abstracting "state"
(defvar rigpa--current-tower-index 0)
Expand Down
7 changes: 5 additions & 2 deletions rigpa.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
(require 'chimera)
(require 'ht)
(require 'rigpa-custom)
(require 'rigpa-local)
(require 'rigpa-char-mode)
(require 'rigpa-word-mode)
(require 'rigpa-line-mode)
Expand Down Expand Up @@ -368,7 +367,11 @@ and simply toggles whether the menu is visible or not."
:default "meta-tower"
:members (list rigpa-meta-tower-mode-tower)))

(defvar-local rigpa--complex rigpa-general-complex))
;; the editing complex to use in a buffer
;; by default this is general complex unless a more tailored one
;; has been set (e.g. via major mode hook)
(setq rigpa--complex rigpa-general-complex)
(make-variable-buffer-local 'rigpa--complex))

(defun rigpa--provide-editing-structures ()
"Register editing structures so they're used in relevant major modes."
Expand Down

0 comments on commit 10e3157

Please sign in to comment.