From cdb0c4157308c489085d5dbe0551bd7669ee0f51 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Wed, 10 Apr 2024 16:02:02 +0100 Subject: [PATCH] Remove exwm stuff to remove the dependency on exwm --- flake.nix | 4 ++-- noether-units.el | 30 +----------------------------- noether-views.el | 25 +------------------------ noether.el | 2 +- noether.example | 2 +- test-noether.el | 2 +- 6 files changed, 7 insertions(+), 58 deletions(-) diff --git a/flake.nix b/flake.nix index a69420a..b6af18d 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*- # -# Copyright (c) 2023 Sameer Rahmani +# Copyright (c) 2023-2024 Sameer Rahmani # # Author: Sameer Rahmani # URL: https://devheroes.codes/lxsameer/noether @@ -53,7 +53,7 @@ noether = pkgs.emacsPackages.trivialBuild { pname = "noether-mode"; - version = "0.1.5"; + version = "0.1.6"; buildInputs = [ pkgs.emacsPackages.posframe ]; src = ./.; diff --git a/noether-units.el b/noether-units.el index 0fae64a..3fcb00b 100644 --- a/noether-units.el +++ b/noether-units.el @@ -1,6 +1,6 @@ ;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*- ;; -;; Copyright (c) 2023 Sameer Rahmani +;; Copyright (c) 2023-2024 Sameer Rahmani ;; ;; Author: Sameer Rahmani ;; URL: https://devheroes.codes/lxsameer/noether @@ -193,33 +193,5 @@ Emacs knowing." :var 'noether--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) ;;; noether-units.el ends here diff --git a/noether-views.el b/noether-views.el index 7c7ad70..02d2e79 100644 --- a/noether-views.el +++ b/noether-views.el @@ -1,6 +1,6 @@ ;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*- ;; -;; Copyright (c) 2023 Sameer Rahmani +;; Copyright (c) 2023-2024 Sameer Rahmani ;; ;; Author: Sameer Rahmani ;; URL: https://devheroes.codes/lxsameer/noether @@ -71,28 +71,5 @@ Appears on the center of the current window." (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) ;;; noether-views.el ends here diff --git a/noether.el b/noether.el index ca26798..ed02fbd 100644 --- a/noether.el +++ b/noether.el @@ -1,6 +1,6 @@ ;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*- ;; -;; Copyright (c) 2023 Sameer Rahmani +;; Copyright (c) 2023-2024 Sameer Rahmani ;; ;; Author: Sameer Rahmani ;; URL: https://devheroes.codes/lxsameer/noether diff --git a/noether.example b/noether.example index c5e66ac..3f7a754 100644 --- a/noether.example +++ b/noether.example @@ -1,6 +1,6 @@ ;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*- ;; -;; Copyright (c) 2023 Sameer Rahmani +;; Copyright (c) 2023-2024 Sameer Rahmani ;; ;; Author: Sameer Rahmani ;; URL: https://devheroes.codes/lxsameer/noether diff --git a/test-noether.el b/test-noether.el index dfb1ebe..50a720f 100644 --- a/test-noether.el +++ b/test-noether.el @@ -1,6 +1,6 @@ ;;; noether.el --- A modeline which plays hide and seek -*- lexical-binding: t; -*- ;; -;; Copyright (c) 2023 Sameer Rahmani +;; Copyright (c) 2023-2024 Sameer Rahmani ;; ;; Author: Sameer Rahmani ;; URL: https://devheroes.codes/lxsameer/noether