Remove exwm stuff to remove the dependency on exwm
This commit is contained in:
parent
e6f3fd58ab
commit
cdb0c41573
|
@ -1,6 +1,6 @@
|
||||||
# noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
# noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 Sameer Rahmani <lxsameer@gnu.org>
|
# Copyright (c) 2023-2024 Sameer Rahmani <lxsameer@gnu.org>
|
||||||
#
|
#
|
||||||
# Author: Sameer Rahmani <lxsameer@gnu.org>
|
# Author: Sameer Rahmani <lxsameer@gnu.org>
|
||||||
# URL: https://devheroes.codes/lxsameer/noether
|
# URL: https://devheroes.codes/lxsameer/noether
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
noether = pkgs.emacsPackages.trivialBuild {
|
noether = pkgs.emacsPackages.trivialBuild {
|
||||||
pname = "noether-mode";
|
pname = "noether-mode";
|
||||||
version = "0.1.5";
|
version = "0.1.6";
|
||||||
buildInputs = [ pkgs.emacsPackages.posframe ];
|
buildInputs = [ pkgs.emacsPackages.posframe ];
|
||||||
|
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) 2023 Sameer Rahmani <lxsameer@gnu.org>
|
;; Copyright (c) 2023-2024 Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;;
|
;;
|
||||||
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;; URL: https://devheroes.codes/lxsameer/noether
|
;; URL: https://devheroes.codes/lxsameer/noether
|
||||||
|
@ -193,33 +193,5 @@ Emacs knowing."
|
||||||
:var 'noether--git-branch
|
:var 'noether--git-branch
|
||||||
:fn #'noether--format-git-branch)
|
:fn #'noether--format-git-branch)
|
||||||
|
|
||||||
;; ============================================================================
|
|
||||||
;; Exwm input mode
|
|
||||||
;; ============================================================================
|
|
||||||
(defvar noether--exwm-input-mode nil)
|
|
||||||
|
|
||||||
(defun noether--set-exwm-input-mode ()
|
|
||||||
"Set the EXWM input mode for the current buffer."
|
|
||||||
(setq noether--exwm-input-mode (format "%s" exwm--input-mode)))
|
|
||||||
|
|
||||||
(defun noether--format-exwm-input-mode (_ v _ _)
|
|
||||||
"Just return the input mode name V."
|
|
||||||
v)
|
|
||||||
|
|
||||||
|
|
||||||
(noether-defunit exwm-input-mode-unit
|
|
||||||
"Show the input mode of EXWM for the current buffer."
|
|
||||||
:label "I:"
|
|
||||||
:len 4
|
|
||||||
:init (lambda ()
|
|
||||||
(when (featurep 'exwm)
|
|
||||||
(add-hook 'noether-on-buffer-change-hook #'noether--set-exwm-input-mode)))
|
|
||||||
:deinit (lambda ()
|
|
||||||
(when (featurep 'exwm)
|
|
||||||
(remove-hook 'noether-on-buffer-change-hook #'noether--set-exwm-input-mode)))
|
|
||||||
:var 'noether--exwm-input-mode
|
|
||||||
:fn #'noether--format-exwm-input-mode)
|
|
||||||
|
|
||||||
|
|
||||||
(provide 'noether-units)
|
(provide 'noether-units)
|
||||||
;;; noether-units.el ends here
|
;;; noether-units.el ends here
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) 2023 Sameer Rahmani <lxsameer@gnu.org>
|
;; Copyright (c) 2023-2024 Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;;
|
;;
|
||||||
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;; URL: https://devheroes.codes/lxsameer/noether
|
;; URL: https://devheroes.codes/lxsameer/noether
|
||||||
|
@ -71,28 +71,5 @@ Appears on the center of the current window."
|
||||||
(line-unit :label "")))
|
(line-unit :label "")))
|
||||||
|
|
||||||
|
|
||||||
(noether-defview noether-minimal-exwm
|
|
||||||
"A super simple bar containing the line number and column number that
|
|
||||||
Appears on the center of the current window."
|
|
||||||
:managed? t
|
|
||||||
:buffer "*exwm-status*"
|
|
||||||
:binding (kbd "C-c 3")
|
|
||||||
:separator "|"
|
|
||||||
:frame
|
|
||||||
(list
|
|
||||||
;; Such a big numbers for X and Y will cause the frame to appear on the
|
|
||||||
;; bottom right corner and covering the minibuffer
|
|
||||||
:position '(10000 . 10000)
|
|
||||||
:border-width 0
|
|
||||||
:timeout 5
|
|
||||||
:border-color "#bd93f9")
|
|
||||||
|
|
||||||
:units
|
|
||||||
(list
|
|
||||||
(exwm-input-mode-unit :label "")
|
|
||||||
(buffer-name-unit :label "")
|
|
||||||
(time-unit :label "")))
|
|
||||||
|
|
||||||
|
|
||||||
(provide 'noether-views)
|
(provide 'noether-views)
|
||||||
;;; noether-views.el ends here
|
;;; noether-views.el ends here
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) 2023 Sameer Rahmani <lxsameer@gnu.org>
|
;; Copyright (c) 2023-2024 Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;;
|
;;
|
||||||
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;; URL: https://devheroes.codes/lxsameer/noether
|
;; URL: https://devheroes.codes/lxsameer/noether
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) 2023 Sameer Rahmani <lxsameer@gnu.org>
|
;; Copyright (c) 2023-2024 Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;;
|
;;
|
||||||
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;; URL: https://devheroes.codes/lxsameer/noether
|
;; URL: https://devheroes.codes/lxsameer/noether
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*-
|
||||||
;;
|
;;
|
||||||
;; Copyright (c) 2023 Sameer Rahmani <lxsameer@gnu.org>
|
;; Copyright (c) 2023-2024 Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;;
|
;;
|
||||||
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
;; Author: Sameer Rahmani <lxsameer@gnu.org>
|
||||||
;; URL: https://devheroes.codes/lxsameer/noether
|
;; URL: https://devheroes.codes/lxsameer/noether
|
||||||
|
|
Loading…
Reference in New Issue