mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-11 13:07:28 -05:00
Remove doom-modeline pin, add back missing functions
This commit is contained in:
@ -217,6 +217,7 @@ let
|
|||||||
chmod u+w $out/config.el
|
chmod u+w $out/config.el
|
||||||
cat $extraConfigPath > $out/config.extra.el
|
cat $extraConfigPath > $out/config.extra.el
|
||||||
cat > $out/config.el << EOF
|
cat > $out/config.el << EOF
|
||||||
|
(load "${./workarounds.el}")
|
||||||
(load "${doomPrivateDir}/config.el")
|
(load "${doomPrivateDir}/config.el")
|
||||||
(load "$out/config.extra.el")
|
(load "$out/config.extra.el")
|
||||||
EOF
|
EOF
|
||||||
|
18
flake.lock
generated
18
flake.lock
generated
@ -17,23 +17,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"doom-modeline": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1648449595,
|
|
||||||
"narHash": "sha256-HjULFxtNDAJ7PDpy/e2bhoDYgBjwGpBdBoTY135puYA=",
|
|
||||||
"owner": "seagle0128",
|
|
||||||
"repo": "doom-modeline",
|
|
||||||
"rev": "ce9899f00af40edb78f58b9af5c3685d67c8eed2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "seagle0128",
|
|
||||||
"repo": "doom-modeline",
|
|
||||||
"rev": "ce9899f00af40edb78f58b9af5c3685d67c8eed2",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"doom-snippets": {
|
"doom-snippets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -356,7 +339,6 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"doom-emacs": "doom-emacs",
|
"doom-emacs": "doom-emacs",
|
||||||
"doom-modeline": "doom-modeline",
|
|
||||||
"doom-snippets": "doom-snippets",
|
"doom-snippets": "doom-snippets",
|
||||||
"emacs-overlay": "emacs-overlay",
|
"emacs-overlay": "emacs-overlay",
|
||||||
"emacs-so-long": "emacs-so-long",
|
"emacs-so-long": "emacs-so-long",
|
||||||
|
@ -39,9 +39,6 @@
|
|||||||
# TODO: change back to master once we get synced back with upstream changes
|
# TODO: change back to master once we get synced back with upstream changes
|
||||||
doom-emacs.url = "github:doomemacs/doomemacs/3853dff5e11655e858d0bfae64b70cb12ef685ac";
|
doom-emacs.url = "github:doomemacs/doomemacs/3853dff5e11655e858d0bfae64b70cb12ef685ac";
|
||||||
doom-emacs.flake = false;
|
doom-emacs.flake = false;
|
||||||
# TODO remove pin once we get synced back with upstream changes
|
|
||||||
doom-modeline.url = "github:seagle0128/doom-modeline/ce9899f00af40edb78f58b9af5c3685d67c8eed2";
|
|
||||||
doom-modeline.flake = false;
|
|
||||||
doom-snippets.url = "github:doomemacs/snippets";
|
doom-snippets.url = "github:doomemacs/snippets";
|
||||||
doom-snippets.flake = false;
|
doom-snippets.flake = false;
|
||||||
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||||
|
@ -8,15 +8,6 @@ self: super: {
|
|||||||
buildPhase = ":";
|
buildPhase = ":";
|
||||||
} // args);
|
} // args);
|
||||||
|
|
||||||
doom-modeline = self.straightBuild {
|
|
||||||
pname = "doom-modeline";
|
|
||||||
propagatedBuildInputs = with self; [
|
|
||||||
all-the-icons
|
|
||||||
compat
|
|
||||||
shrink-path
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
doom-snippets = self.straightBuild {
|
doom-snippets = self.straightBuild {
|
||||||
pname = "doom-snippets";
|
pname = "doom-snippets";
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
57
workarounds.el
Normal file
57
workarounds.el
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
;;; workarounds.el --- Description -*- lexical-binding: t; -*-
|
||||||
|
;;; Re-added functions removed in https://github.com/seagle0128/doom-modeline/commit/b596440ee78b3e7d2debc3d73f4d938d968fb896
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-minimal-modeline ()
|
||||||
|
"Set minimal mode-line."
|
||||||
|
(doom-modeline-set-modeline 'minimal))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-special-modeline ()
|
||||||
|
"Set special mode-line."
|
||||||
|
(doom-modeline-set-modeline 'special))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-project-modeline ()
|
||||||
|
"Set project mode-line."
|
||||||
|
(doom-modeline-set-modeline 'project))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-dashboard-modeline ()
|
||||||
|
"Set dashboard mode-line."
|
||||||
|
(doom-modeline-set-modeline 'dashboard))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-vcs-modeline ()
|
||||||
|
"Set vcs mode-line."
|
||||||
|
(doom-modeline-set-modeline 'vcs))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-info-modeline ()
|
||||||
|
"Set Info mode-line."
|
||||||
|
(doom-modeline-set-modeline 'info))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-package-modeline ()
|
||||||
|
"Set package mode-line."
|
||||||
|
(doom-modeline-set-modeline 'package))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-media-modeline ()
|
||||||
|
"Set media mode-line."
|
||||||
|
(doom-modeline-set-modeline 'media))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-message-modeline ()
|
||||||
|
"Set message mode-line."
|
||||||
|
(doom-modeline-set-modeline 'message))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-pdf-modeline ()
|
||||||
|
"Set pdf mode-line."
|
||||||
|
(doom-modeline-set-modeline 'pdf))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom-modeline-set-org-src-modeline ()
|
||||||
|
"Set org-src mode-line."
|
||||||
|
(doom-modeline-set-modeline 'org-src))
|
Reference in New Issue
Block a user