[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 2958d21869 035/158: Remove marginalia from dtach
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 2958d21869 035/158: Remove marginalia from dtache |
Date: |
Wed, 19 Jan 2022 18:57:42 -0500 (EST) |
branch: externals/dtache
commit 2958d21869cba71874a6aa2423b71bb9f89f77de
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Remove marginalia from dtache
This patch removes the marginalia extension and updates the
README. With the new annotation function this extension is not needed
anymore.
---
README.org | 12 ------
guix.scm | 3 +-
marginalia-dtache.el | 104 ---------------------------------------------------
3 files changed, 1 insertion(+), 118 deletions(-)
diff --git a/README.org b/README.org
index 03bfe4a87a..25c7f0773b 100644
--- a/README.org
+++ b/README.org
@@ -122,18 +122,6 @@ Add [[https://github.com/oantolin/embark/][embark]]
actions to =dtache-open-sess
:after (dtache embark))
#+end_src
-** Marginalia
-
- Add [[https://github.com/minad/marginalia/][marginalia]] annotations to
enrich =dtache-open-session=.
-
-#+begin_src elisp
- (use-package marginalia-dtache
- :after (dtache marginalia)
- :config
- ;; Register marginalia annotator
- (add-to-list 'marginalia-annotator-registry '(dtache
marginalia-dtache-annotate builtin none)))
-#+end_src
-
* Tips & Tricks
** Automatic status labeling
diff --git a/guix.scm b/guix.scm
index d37d25601b..3f65f203ca 100644
--- a/guix.scm
+++ b/guix.scm
@@ -36,8 +36,7 @@
(file-name (git-file-name name version))))
(build-system emacs-build-system)
(propagated-inputs
- `(("emacs-embark" ,emacs-embark)
- ("emacs-marginalia" ,emacs-marginalia)))
+ `(("emacs-embark" ,emacs-embark)))
(native-inputs
`(("emacs-ert-runner" ,emacs-ert-runner)))
(inputs `(("dtach" ,dtach)))
diff --git a/marginalia-dtache.el b/marginalia-dtache.el
deleted file mode 100644
index e1c82f8a4d..0000000000
--- a/marginalia-dtache.el
+++ /dev/null
@@ -1,104 +0,0 @@
-;;; marginalia-dtache.el --- Dtache Marginalia integration -*-
lexical-binding: t -*-
-
-;; Copyright (C) 2020-2021 Niklas Eklund
-
-;; Author: Niklas Eklund <niklas.eklund@posteo.net>
-;; URL: https://www.gitlab.com/niklaseklund/dtache.git
-;; Version: 0.1
-;; Package-Requires: ((emacs "27.1"))
-;; Keywords: convenience processes
-
-;; This file is not part of GNU Emacs.
-
-;; This program is free software; you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or
-;; (at your option) any later version.
-
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-;; GNU General Public License for more details.
-
-;; You should have received a copy of the GNU General Public License
-;; along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-;;; Commentary:
-
-;; This package provides annotated `dtache' sessions through
-;; `marginalia' which enhances the `dtache-open-session'.
-
-;;; Code:
-
-;;;; Requirements
-
-(require 'dtache)
-(require 'marginalia)
-
-;;;; Variables
-
-(defvar marginalia-dtache-metadata-length 30)
-(defvar marginalia-dtache-duration-length 10)
-(defvar marginalia-dtache-working-dir-length 50)
-(defvar marginalia-dtache-size-length 8)
-(defvar marginalia-dtache-date-length 12)
-(defvar marginalia-dtache-host-length 10)
-
-;;;; Faces
-
-(defgroup marginalia-dtache-faces nil
- "Faces used by `marginalia-mode'."
- :group 'marginalia
- :group 'faces)
-
-(defface marginalia-dtache-metadata
- '((t :inherit marginalia-char))
- "Face used to highlight git information in `marginalia-mode'.")
-
-(defface marginalia-dtache-error
- '((t :inherit error))
- "Face used to highlight error in `marginalia-mode'.")
-
-(defface marginalia-dtache-active
- '((t :inherit marginalia-file-owner))
- "Face used to highlight active in `marginalia-mode'.")
-
-(defface marginalia-dtache-duration
- '((t :inherit marginalia-date))
- "Face used to highlight duration in `marginalia-mode'.")
-
-(defface marginalia-dtache-size
- '((t :inherit marginalia-size))
- "Face used to highlight size in `marginalia-mode'.")
-
-(defface marginalia-dtache-creation
- '((t :inherit marginalia-date))
- "Face used to highlight date in `marginalia-mode'.")
-
-(defface marginalia-dtache-working-dir
- '((t :inherit marginalia-symbol))
- "Face used to highlight working directory in `marginalia-mode'.")
-
-(defface marginalia-dtache-host
- '((t :inherit marginalia-function))
- "Face used to highlight host in `marginalia-mode'.")
-
-;;;; Functions
-
-(defun marginalia-dtache-annotate (candidate)
- "Annotate dtache CANDIDATE."
- (let* ((session
- (get-text-property 0 'dtache--data candidate)))
- (marginalia--fields
- ((dtache--active-str session) :width 3 :face 'marginalia-dtache-active)
- ((dtache--status-str session) :width 3 :face 'marginalia-dtache-error)
- ((dtache--session-host session) :truncate marginalia-dtache-host-length
:face 'marginalia-dtache-host)
- ((dtache--working-dir-str session) :truncate
marginalia-dtache-working-dir-length :face 'marginalia-dtache-working-dir)
- ((dtache--metadata-str session) :truncate
marginalia-dtache-metadata-length :face 'marginalia-dtache-metadata)
- ((dtache--duration-str session) :truncate
marginalia-dtache-duration-length :face 'marginalia-dtache-duration)
- ((dtache--size-str session) :truncate marginalia-dtache-size-length :face
'marginalia-dtache-size)
- ((dtache--creation-str session) :truncate marginalia-dtache-date-length
:face 'marginalia-dtache-creation))))
-
-(provide 'marginalia-dtache)
-
-;;; marginalia-dtache.el ends here
- [elpa] externals/dtache 34b481d354 008/158: Add some more information to the README, (continued)
- [elpa] externals/dtache 34b481d354 008/158: Add some more information to the README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 91baa9ecfa 031/158: Update dtache-message detection, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache eaf141725f 044/158: Add compile section to tips and tricks in README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache eb997e0b4e 023/158: Correct some spelling mistakes, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 082139f1c3 045/158: Add instructions on how to customize annotations, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache f6c9710c1b 017/158: Merge develop branch into master, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 99fd5c5b5c 025/158: Make sure to erase the output buffer, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b2eabec6c7 041/158: Improve dtache actions, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 357432877c 033/158: Implement annotation/affixation function, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache ecc7563302 048/158: Update LICENSE, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2958d21869 035/158: Remove marginalia from dtache,
ELPA Syncer <=
- [elpa] externals/dtache afb2684f38 027/158: Improve dtache-env command, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c29079e0c0 047/158: Remove dtache-session-history, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache db230154e4 016/158: Merge develop branch into master, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 2a38a9b538 030/158: Robustify against failures in configuration, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 115de6c1a2 022/158: Add default value for dtache-max-command-length, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 09d378e50a 024/158: Fix read-only problematic, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 4e99fc9daa 049/158: Deprecate dtache-list-sessions, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache cb1762ffc2 052/158: Add presentation about dtache version 0.2, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 5d9c8aa54f 053/158: Add macOS support, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 01a27b4dc2 056/158: Update README with reference to consult-dtache, ELPA Syncer, 2022/01/19