WFH tweaks, more options for fic export
This commit is contained in:
parent
bfd5775927
commit
99b9079131
5 changed files with 77 additions and 48 deletions
|
@ -1,4 +1,9 @@
|
|||
(load-file "~/Documents/drive/admin/emacs/daysoff.el")
|
||||
|
||||
(defcustom workday nil
|
||||
"Returns true on working days"
|
||||
:type 'boolean)
|
||||
|
||||
(if (equal (format-time-string "%a") "Sat")
|
||||
(setq workday nil)
|
||||
(if (equal (format-time-string "%a") "Sun")
|
||||
|
@ -6,3 +11,12 @@
|
|||
(if (member (format-time-string "%Y-%m-%d") daysoff)
|
||||
(setq workday nil)
|
||||
(setq workday t))))
|
||||
|
||||
(defcustom workhours nil
|
||||
"Returns true during working hours"
|
||||
:type 'boolean)
|
||||
|
||||
(if workday
|
||||
(if (< (string-to-number (format-time-string "%H")) 19)
|
||||
(if (> (string-to-number (format-time-string "%H")) 7)
|
||||
(setq workhours t))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue