forked from colonelpanic/dotfiles
[Emacs] Improve default org-window-habit faces
This commit is contained in:
parent
84db8ba802
commit
f4485e2070
@ -317,15 +317,15 @@
|
|||||||
(defvar org-window-habit-face-fn 'org-window-habit-default-face-fn)
|
(defvar org-window-habit-face-fn 'org-window-habit-default-face-fn)
|
||||||
|
|
||||||
(defface org-window-habit-conformed-with-completion-face
|
(defface org-window-habit-conformed-with-completion-face
|
||||||
'((((background light)) (:background "#007F7F"))
|
'((((background light)) (:background "#40778f"))
|
||||||
(((background dark)) (:background "cyan")))
|
(((background dark)) (:background "#40778f")))
|
||||||
"Face for intervals on which a the user was conforming with their completion but not without it."
|
"Face for intervals on which a the user was conforming with their completion but not without it."
|
||||||
:group 'org-window-habit
|
:group 'org-window-habit
|
||||||
:group 'org-faces)
|
:group 'org-faces)
|
||||||
|
|
||||||
(defface org-window-habit-conforming-without-completion-face
|
(defface org-window-habit-conforming-without-completion-face
|
||||||
'((((background light)) (:background "#8270f9"))
|
'((((background light)) (:background "#40578f"))
|
||||||
(((background dark)) (:background "blue")))
|
(((background dark)) (:background "#40578f")))
|
||||||
"Face for intervals for which the user is conforming without any completions."
|
"Face for intervals for which the user is conforming without any completions."
|
||||||
:group 'org-window-habit
|
:group 'org-window-habit
|
||||||
:group 'org-faces)
|
:group 'org-faces)
|
||||||
@ -527,19 +527,16 @@
|
|||||||
|
|
||||||
;; TODO: check for completion WITHIN the current interval
|
;; TODO: check for completion WITHIN the current interval
|
||||||
(defun org-window-habit-auto-repeat (&rest args)
|
(defun org-window-habit-auto-repeat (&rest args)
|
||||||
|
(interactive)
|
||||||
(let* ((required-interval-start
|
(let* ((required-interval-start
|
||||||
(car (org-window-habit-get-next-required-interval
|
(car (org-window-habit-get-next-required-interval
|
||||||
(org-window-habit-create-instance-from-heading-at-point))))
|
(org-window-habit-create-instance-from-heading-at-point))))
|
||||||
(repeat (org-get-repeat))
|
(repeat (org-get-repeat))
|
||||||
(deadline-time-string
|
(target-time-string
|
||||||
(format-time-string (car org-timestamp-formats)
|
(format-time-string (car org-timestamp-formats)
|
||||||
required-interval-start)))
|
required-interval-start)))
|
||||||
(org-deadline nil deadline-time-string))
|
(org-deadline nil target-time-string)
|
||||||
;; Always unschedule
|
(org-schedule nil target-time-string)))
|
||||||
(save-excursion
|
|
||||||
(let ((scheduled (org-entry-get (point) "SCHEDULED")))
|
|
||||||
(when scheduled
|
|
||||||
(org-remove-timestamp-with-keyword org-scheduled-string)))))
|
|
||||||
|
|
||||||
(defun org-window-habit-auto-repeat-maybe-advice (orig &rest args)
|
(defun org-window-habit-auto-repeat-maybe-advice (orig &rest args)
|
||||||
(apply orig args)
|
(apply orig args)
|
||||||
|
@ -711,13 +711,19 @@ alphanumeric characters only."
|
|||||||
#+end_src
|
#+end_src
|
||||||
** org-ehtml
|
** org-ehtml
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
(use-package web-server
|
||||||
|
:straight (web-server
|
||||||
|
:repo "eschulte/emacs-web-server"
|
||||||
|
:host github))
|
||||||
|
|
||||||
(use-package org-ehtml
|
(use-package org-ehtml
|
||||||
:disabled t
|
:after web-server
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq org-ehtml-allow-agenda t)
|
(setq org-ehtml-allow-agenda t)
|
||||||
(setq org-ehtml-editable-headlines t)
|
(setq org-ehtml-editable-headlines t)
|
||||||
(setq org-ehtml-everything-editable t)))
|
(setq org-ehtml-everything-editable t)
|
||||||
|
(ws-start org-ehtml-handler 8888)))
|
||||||
#+end_src
|
#+end_src
|
||||||
** org-modern
|
** org-modern
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -863,11 +863,11 @@
|
|||||||
},
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1693099187,
|
"lastModified": 1693158576,
|
||||||
"narHash": "sha256-FXCc6OIghv9k4xYOhSMZI6bj7o56S8BJKzKtTKzdUVQ=",
|
"narHash": "sha256-aRTTXkYvhXosGx535iAFUaoFboUrZSYb1Ooih/auGp0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cf2004afe4d4b95a295c63c911e949e40915eedb",
|
"rev": "a999c1cc0c9eb2095729d5aa03e0d8f7ed256780",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{ forEachUser, ... }: {
|
{ forEachUser, ... }:
|
||||||
|
let biskcomp-nginx-hostnames = "192.168.1.44 railbird.ai 1896Folsom.duckdns.org biskcomp.local 0.0.0.0 67.162.131.71";
|
||||||
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../configuration.nix
|
../configuration.nix
|
||||||
../raspberry-pi.nix
|
../raspberry-pi.nix
|
||||||
@ -17,7 +20,7 @@
|
|||||||
modules.nixified-ai.enable = false;
|
modules.nixified-ai.enable = false;
|
||||||
modules.cache-server = {
|
modules.cache-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host-string = "192.168.1.44 railbird.ai 1896Folsom.duckdns.org 0.0.0.0 67.162.131.71";
|
host-string = biskcomp-nginx-hostnames;
|
||||||
port = 80;
|
port = 80;
|
||||||
path = "/nix-cache";
|
path = "/nix-cache";
|
||||||
};
|
};
|
||||||
@ -25,7 +28,7 @@
|
|||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
ROCKET_ADDRESS = "::";
|
ROCKET_ADDRESS = "::1";
|
||||||
ROCKET_PORT = 8222;
|
ROCKET_PORT = 8222;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -35,14 +38,28 @@
|
|||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = let conf = {
|
virtualHosts = {
|
||||||
|
"192.168.1.44 railbird.ai 1896Folsom.duckdns.org 0.0.0.0 67.162.131.71" = {
|
||||||
root = ../railbird.ai;
|
root = ../railbird.ai;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
index = "index.html";
|
index = "index.html";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
# Server block for Vaultwarden on a different port
|
||||||
"192.168.1.44 railbird.ai 1896Folsom.duckdns.org 0.0.0.0 67.162.131.71" = conf;
|
"_:8222" = {
|
||||||
|
listen = [ { addr = "::"; port = 8222; } ]; # Listen on IPv6 and port 8222
|
||||||
|
forceSSL = false; # Assuming you're not using HTTPS for this one
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://::1:8222";
|
||||||
|
proxySetHeaders = {
|
||||||
|
Host = "$host";
|
||||||
|
X-Real-IP = "$remote_addr";
|
||||||
|
X-Forwarded-For = "$proxy_add_x_forwarded_for";
|
||||||
|
X-Forwarded-Proto = "$scheme";
|
||||||
|
};
|
||||||
|
proxyRedirect = "off";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user