|
|
|
|
@ -27,20 +27,28 @@ This function should only modify configuration layer settings." |
|
|
|
|
dotspacemacs-ask-for-lazy-installation t |
|
|
|
|
|
|
|
|
|
;; List of additional paths where to look for configuration layers. |
|
|
|
|
;; Paths must have a trailing slash (i.e. `~/.mycontribs/') |
|
|
|
|
;; Paths must have a trailing slash (i.e. "~/.mycontribs/") |
|
|
|
|
dotspacemacs-configuration-layer-path '() |
|
|
|
|
|
|
|
|
|
;; List of configuration layers to load. |
|
|
|
|
dotspacemacs-configuration-layers |
|
|
|
|
'(html |
|
|
|
|
'( |
|
|
|
|
toml |
|
|
|
|
html |
|
|
|
|
python |
|
|
|
|
javascript |
|
|
|
|
pandoc |
|
|
|
|
;; ---------------------------------------------------------------- |
|
|
|
|
;; Example of useful layers you may want to use right away. |
|
|
|
|
;; Uncomment some layer names and press `SPC f e R' (Vim style) or |
|
|
|
|
;; `M-m f e R' (Emacs style) to install them. |
|
|
|
|
;; ---------------------------------------------------------------- |
|
|
|
|
auto-completion |
|
|
|
|
(auto-completion :variables |
|
|
|
|
auto-completion-enable-snippets-in-popup t |
|
|
|
|
auto-completion-enable-help-tooltip t |
|
|
|
|
auto-completion-use-company-box t |
|
|
|
|
auto-completion-enable-sort-by-usage t) |
|
|
|
|
;; better-defaults |
|
|
|
|
emacs-lisp |
|
|
|
|
git |
|
|
|
|
@ -52,16 +60,21 @@ This function should only modify configuration layer settings." |
|
|
|
|
(org :variables |
|
|
|
|
org-enable-bootstrap-support t |
|
|
|
|
org-enable-jira-support t |
|
|
|
|
;; org-enable-roam-support t |
|
|
|
|
;; org-enable-roam-ui t |
|
|
|
|
;; org-roam-completion-everywhere t |
|
|
|
|
;; this does not work weel with my current font |
|
|
|
|
;; org-enable-modern-support t |
|
|
|
|
) |
|
|
|
|
shell-scripts |
|
|
|
|
dap ;; debugging |
|
|
|
|
;; (shell :variables |
|
|
|
|
;; shell-default-height 30 |
|
|
|
|
;; shell-default-position 'bottom) |
|
|
|
|
;; spell-checking |
|
|
|
|
syntax-checking |
|
|
|
|
;; version-control |
|
|
|
|
treemacs) |
|
|
|
|
treemacs |
|
|
|
|
docker |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; List of additional packages that will be installed without being wrapped |
|
|
|
|
@ -72,12 +85,14 @@ This function should only modify configuration layer settings." |
|
|
|
|
;; `dotspacemacs/user-config'. To use a local version of a package, use the |
|
|
|
|
;; `:location' property: '(your-package :location "~/path/to/your-package/") |
|
|
|
|
;; Also include the dependencies as they will not be resolved automatically. |
|
|
|
|
dotspacemacs-additional-packages '(grab-mac-link) |
|
|
|
|
;; dotspacemacs-additional-packages '(org-mac-link :location "/Users/jetpac/org-mac-link.el") |
|
|
|
|
|
|
|
|
|
;; as ofr Oct2024, MS Outlook does not support getting selected message via AppleScript |
|
|
|
|
;; more here: https://forum.keyboardmaestro.com/t/new-outlook-applescript/31296 |
|
|
|
|
dotspacemacs-additional-packages '( |
|
|
|
|
org-mac-link |
|
|
|
|
org-alert |
|
|
|
|
) |
|
|
|
|
org-mac-link |
|
|
|
|
org-alert |
|
|
|
|
;org-protocol |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
;; A list of packages that cannot be updated. |
|
|
|
|
dotspacemacs-frozen-packages '() |
|
|
|
|
@ -112,7 +127,6 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
;; (default nil) |
|
|
|
|
dotspacemacs-enable-emacs-pdumper nil |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Name of executable file pointing to emacs 27+. This executable must be |
|
|
|
|
;; in your PATH. |
|
|
|
|
;; (default "emacs") |
|
|
|
|
@ -126,14 +140,6 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
;; (default (format "spacemacs-%s.pdmp" emacs-version)) |
|
|
|
|
dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version) |
|
|
|
|
|
|
|
|
|
;; If non-nil ELPA repositories are contacted via HTTPS whenever it's |
|
|
|
|
;; possible. Set it to nil if you have no way to use HTTPS in your |
|
|
|
|
;; environment, otherwise it is strongly recommended to let it set to t. |
|
|
|
|
;; This variable has no effect if Emacs is launched with the parameter |
|
|
|
|
;; `--insecure' which forces the value of this variable to nil. |
|
|
|
|
;; (default t) |
|
|
|
|
dotspacemacs-elpa-https t |
|
|
|
|
|
|
|
|
|
;; Maximum allowed time in seconds to contact an ELPA repository. |
|
|
|
|
;; (default 5) |
|
|
|
|
dotspacemacs-elpa-timeout 5 |
|
|
|
|
@ -267,7 +273,9 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
;; (default t) |
|
|
|
|
dotspacemacs-colorize-cursor-according-to-state t |
|
|
|
|
|
|
|
|
|
;; Default font or prioritized list of fonts. The `:size' can be specified as |
|
|
|
|
;; Default font or prioritized list of fonts. This setting has no effect when |
|
|
|
|
;; running Emacs in terminal. The font set here will be used for default and |
|
|
|
|
;; fixed-pitch faces. The `:size' can be specified as |
|
|
|
|
;; a non-negative integer (pixel size), or a floating-point (point size). |
|
|
|
|
;; Point size is recommended, because it's device independent. (default 10.0) |
|
|
|
|
dotspacemacs-default-font '("Source Code Pro for Powerline" |
|
|
|
|
@ -316,7 +324,7 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
|
|
|
|
|
;; If non-nil then the last auto saved layouts are resumed automatically upon |
|
|
|
|
;; start. (default nil) |
|
|
|
|
dotspacemacs-auto-resume-layouts nil |
|
|
|
|
dotspacemacs-auto-resume-layouts t |
|
|
|
|
|
|
|
|
|
;; If non-nil, auto-generate layout name when creating new layouts. Only has |
|
|
|
|
;; effect when using the "jump to layout by number" commands. (default nil) |
|
|
|
|
@ -339,7 +347,7 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
;; If non-nil, the paste transient-state is enabled. While enabled, after you |
|
|
|
|
;; paste something, pressing `C-j' and `C-k' several times cycles through the |
|
|
|
|
;; elements in the `kill-ring'. (default nil) |
|
|
|
|
dotspacemacs-enable-paste-transient-state nil |
|
|
|
|
dotspacemacs-enable-paste-transient-state t |
|
|
|
|
|
|
|
|
|
;; Which-key delay in seconds. The which-key buffer is the popup listing |
|
|
|
|
;; the commands bound to the current keystroke sequence. (default 0.4) |
|
|
|
|
@ -348,6 +356,10 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
;; Which-key frame position. Possible values are `right', `bottom' and |
|
|
|
|
;; `right-then-bottom'. right-then-bottom tries to display the frame to the |
|
|
|
|
;; right; if there is insufficient space it displays it at the bottom. |
|
|
|
|
;; It is also possible to use a posframe with the following cons cell |
|
|
|
|
;; `(posframe . position)' where position can be one of `center', |
|
|
|
|
;; `top-center', `bottom-center', `top-left-corner', `top-right-corner', |
|
|
|
|
;; `top-right-corner', `bottom-left-corner' or `bottom-right-corner' |
|
|
|
|
;; (default 'bottom) |
|
|
|
|
dotspacemacs-which-key-position 'bottom |
|
|
|
|
|
|
|
|
|
@ -358,6 +370,11 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
;; displayed in the current window. (default nil) |
|
|
|
|
dotspacemacs-switch-to-buffer-prefers-purpose nil |
|
|
|
|
|
|
|
|
|
;; Whether side windows (such as those created by treemacs or neotree) |
|
|
|
|
;; are kept or minimized by `spacemacs/toggle-maximize-window' (SPC w m). |
|
|
|
|
;; (default t) |
|
|
|
|
dotspacemacs-maximize-window-keep-side-windows t |
|
|
|
|
|
|
|
|
|
;; If non-nil a progress bar is displayed when spacemacs is loading. This |
|
|
|
|
;; may increase the boot time on some systems and emacs builds, set it to |
|
|
|
|
;; nil to boost the loading time. (default t) |
|
|
|
|
@ -461,8 +478,7 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
|
|
|
|
|
;; If non-nil, start an Emacs server if one is not already running. |
|
|
|
|
;; (default nil) |
|
|
|
|
;; dotspacemacs-enable-server nil |
|
|
|
|
dotspacemacs-enable-server t |
|
|
|
|
dotspacemacs-enable-server nil |
|
|
|
|
|
|
|
|
|
;; Set the emacs server socket location. |
|
|
|
|
;; If nil, uses whatever the Emacs default is, otherwise a directory path |
|
|
|
|
@ -473,13 +489,20 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
|
|
|
|
|
;; If non-nil, advise quit functions to keep server open when quitting. |
|
|
|
|
;; (default nil) |
|
|
|
|
dotspacemacs-persistent-server nil |
|
|
|
|
dotspacemacs-persistent-server t |
|
|
|
|
|
|
|
|
|
;; List of search tool executable names. Spacemacs uses the first installed |
|
|
|
|
;; tool of the list. Supported tools are `rg', `ag', `pt', `ack' and `grep'. |
|
|
|
|
;; (default '("rg" "ag" "pt" "ack" "grep")) |
|
|
|
|
dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep") |
|
|
|
|
|
|
|
|
|
;; The backend used for undo/redo functionality. Possible values are |
|
|
|
|
;; `undo-fu', `undo-redo' and `undo-tree' see also `evil-undo-system'. |
|
|
|
|
;; Note that saved undo history does not get transferred when changing |
|
|
|
|
;; your undo system. The default is currently `undo-fu' as `undo-tree' |
|
|
|
|
;; is not maintained anymore and `undo-redo' is very basic." |
|
|
|
|
dotspacemacs-undo-system 'undo-fu |
|
|
|
|
|
|
|
|
|
;; Format specification for setting the frame title. |
|
|
|
|
;; %a - the `abbreviated-file-name', or `buffer-name' |
|
|
|
|
;; %t - `projectile-project-name' |
|
|
|
|
@ -515,6 +538,9 @@ It should only modify the values of Spacemacs settings." |
|
|
|
|
;; to aggressively delete empty line and long sequences of whitespace, |
|
|
|
|
;; `trailing' to delete only the whitespace at end of lines, `changed' to |
|
|
|
|
;; delete only whitespace for changed lines or `nil' to disable cleanup. |
|
|
|
|
;; The variable `global-spacemacs-whitespace-cleanup-modes' controls |
|
|
|
|
;; which major modes have whitespace cleanup enabled or disabled |
|
|
|
|
;; by default. |
|
|
|
|
;; (default nil) |
|
|
|
|
dotspacemacs-whitespace-cleanup nil |
|
|
|
|
|
|
|
|
|
@ -558,7 +584,7 @@ default it calls `spacemacs/load-spacemacs-env' which loads the environment |
|
|
|
|
variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'. |
|
|
|
|
See the header of this file for more information." |
|
|
|
|
(spacemacs/load-spacemacs-env) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
(defun dotspacemacs/user-init () |
|
|
|
|
"Initialization for user code: |
|
|
|
|
@ -566,9 +592,7 @@ This function is called immediately after `dotspacemacs/init', before layer |
|
|
|
|
configuration. |
|
|
|
|
It is mostly for variables that should be set before packages are loaded. |
|
|
|
|
If you are unsure, try setting them in `dotspacemacs/user-config' first." |
|
|
|
|
(add-to-list 'tramp-connection-properties |
|
|
|
|
(list ".*" "remote-shell" "/bin/ksh")) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defun dotspacemacs/user-load () |
|
|
|
|
@ -576,7 +600,7 @@ If you are unsure, try setting them in `dotspacemacs/user-config' first." |
|
|
|
|
This function is called only while dumping Spacemacs configuration. You can |
|
|
|
|
`require' or `load' the libraries of your choice that will be included in the |
|
|
|
|
dump." |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defun dotspacemacs/user-config () |
|
|
|
|
@ -585,20 +609,24 @@ This function is called at the very end of Spacemacs startup, after layer |
|
|
|
|
configuration. |
|
|
|
|
Put your configuration code here, except for variables that should be set |
|
|
|
|
before packages are loaded." |
|
|
|
|
"Configuration for user code: |
|
|
|
|
This function is called at the very end of Spacemacs startup, after layer |
|
|
|
|
configuration. |
|
|
|
|
Put your configuration code here, except for variables that should be set |
|
|
|
|
before packages are loaded." |
|
|
|
|
;; inspiration taken from my old config |
|
|
|
|
;; and https://www.labri.fr/perso/nrougier/GTD/index.html#org13a9a4f |
|
|
|
|
|
|
|
|
|
;; inspiration from https://yiming.dev/blog/2016/05/08/how-do-i-use-org-capture-on-mac/ |
|
|
|
|
;; (spacemacs/set-leader-keys "Cg" 'org-mac-grab-link) |
|
|
|
|
;; Proxy toggle function |
|
|
|
|
(setq http_proxy "http://www-proxy.uk.oracle.com:80") |
|
|
|
|
(defun toggle-proxy () |
|
|
|
|
"Toggle proxy settings for Emacs." |
|
|
|
|
(interactive) |
|
|
|
|
(if (and (boundp 'url-proxy-services) url-proxy-services) |
|
|
|
|
(progn |
|
|
|
|
(setq url-proxy-services nil) |
|
|
|
|
(message "Proxy disabled")) |
|
|
|
|
(setq url-proxy-services |
|
|
|
|
`(("no_proxy" . "localhost") |
|
|
|
|
("http" . ,http_proxy) |
|
|
|
|
("https" . ,http_proxy))) |
|
|
|
|
(message ( concat "Proxy enabled: " http_proxy))) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
;; inspiration at https://emacs.stackexchange.com/questions/30177/how-to-assign-tab-to-indentation-and-to-yasnippet-expand-key |
|
|
|
|
;; (global-set-key (kbd "TAB") 'yas-expand) |
|
|
|
|
;; (global-set-key (kbd "TAB") 'hippie-expand) |
|
|
|
|
;; Bind proxy toggle function to a key |
|
|
|
|
(spacemacs/set-leader-keys "ot" 'toggle-proxy) |
|
|
|
|
|
|
|
|
|
;; idea from chatgpt |
|
|
|
|
(defun set-dotfiles-environment () |
|
|
|
|
@ -623,30 +651,37 @@ before packages are loaded." |
|
|
|
|
(magit-status) |
|
|
|
|
(unset-dotfiles-environment))) |
|
|
|
|
|
|
|
|
|
(require 'org-protocol) |
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'org |
|
|
|
|
;; org mode config |
|
|
|
|
(add-to-list 'org-modules 'org-protocol) |
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'org |
|
|
|
|
;; test from https://superuser.com/questions/452649/org-mode-to-markdown-converter |
|
|
|
|
(require 'ox-md nil t) |
|
|
|
|
|
|
|
|
|
(setq org-directory "~/Documents/org") |
|
|
|
|
(setq org-default-notes-file "~/Documents/org/inbox.org") |
|
|
|
|
|
|
|
|
|
(setq org-duration-format 'h:mm) |
|
|
|
|
|
|
|
|
|
;; Define the custum capture templates |
|
|
|
|
(setq org-capture-templates |
|
|
|
|
'(("t" "Todo [inbox] clock_in clock_resume " entry (file+headline org-default-notes-file "Tasks") |
|
|
|
|
"* TODO %?\n%u\n%a\n" :clock-in t :clock-resume t) |
|
|
|
|
"* TODO %?\n%u\n%a\n" :clock-in t :clock-resume t) |
|
|
|
|
("m" "Meeting [diary] " entry (file+headline org-default-notes-file "Meetings") |
|
|
|
|
"* MEETING with %? :Meeting:\n%t" :clock-in t :clock-resume t) |
|
|
|
|
"* MEETING %? :Meeting:\n%t" :clock-in t :clock-resume t) |
|
|
|
|
("d" "Diary [diary] " entry (file+datetree "~/org/diary.org") |
|
|
|
|
"* %?\n%U\n" :clock-in t :clock-resume t) |
|
|
|
|
("i" "Idea [inbox] " entry (file org-default-notes-file) |
|
|
|
|
"* %? :IDEA: \n%t" :clock-in t :clock-resume t) |
|
|
|
|
("i" "Inbox [inbox]" entry (file+headline org-default-notes-file "Capture") |
|
|
|
|
"* %?\n Captured: %U\n%i\n %a" :empty-lines 1) |
|
|
|
|
;; ("i" "Idea [inbox] " entry (file org-default-notes-file) |
|
|
|
|
;; "* %? :IDEA: \n%t" :clock-in t :clock-resume t) |
|
|
|
|
("n" "Next Task" entry (file+headline org-default-notes-file "Tasks") |
|
|
|
|
"** NEXT %? \nDEADLINE: %t") )) |
|
|
|
|
|
|
|
|
|
; original |
|
|
|
|
; (setq org-agenda-files '("~/Documents/org/inbox.org" |
|
|
|
|
; "~/Documents/org/projects.org" |
|
|
|
|
; "~/Documents/org/someday.org" |
|
|
|
|
; "~/Documents/org/calendar.org")) |
|
|
|
|
|
|
|
|
|
; testing freeze |
|
|
|
|
(setq org-agenda-files '("~/Documents/org/inbox.org" |
|
|
|
|
"~/Documents/org/projects.org" |
|
|
|
|
"~/Documents/org/someday.org" |
|
|
|
|
@ -654,100 +689,64 @@ before packages are loaded." |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;(define-key global-map "\C-cc" 'org-capture) |
|
|
|
|
;(define-key global-map "\C-cl" 'org-store-link) |
|
|
|
|
;(define-key global-map "\C-ca" 'org-agenda) |
|
|
|
|
(define-key org-mode-map (kbd "C-c g") 'org-mac-link-get-link) |
|
|
|
|
|
|
|
|
|
;; (setq org-refile-targets '(("~/Documents/org/inbox.org" :maxlevel . 3))) |
|
|
|
|
|
|
|
|
|
;; (setq org-refile-targets '( |
|
|
|
|
;; ("~/Documents/org/projects.org" :maxlevel . 3) |
|
|
|
|
;; ("~/Documents/org/someday.org", :level .1) |
|
|
|
|
;; ("~/Documents/org/calendar.org", :maxlevel .2) |
|
|
|
|
;; )) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(setq org-refile-targets '(("/Users/jetpac/Documents/org/projects.org" :maxlevel . 3) |
|
|
|
|
("/Users/jetpac/Documents/org/inbox.org" :maxlevel . 3) |
|
|
|
|
("/Users/jetpac/Documents/org/someday.org" :maxlevel . 3) |
|
|
|
|
("/Users/jetpac/Documents/org/inbox.org" :maxlevel . 3) |
|
|
|
|
("/Users/jetpac/Documents/org/calendar.org" :maxlevel . 2))) |
|
|
|
|
|
|
|
|
|
;; ("/Users/jetpac/Documents/org/someday.org" :level . 1) |
|
|
|
|
|
|
|
|
|
;; Don't include a footer with my contact and publishing information at the bottom of every exported HTML document. |
|
|
|
|
(setq org-html-postamble nil) |
|
|
|
|
(setq org-clock-report-include-clocking-task t) |
|
|
|
|
|
|
|
|
|
;; inspiration from https://emacs.stackexchange.com/questions/33179/how-to-fix-columns-of-org-agenda-clock-report |
|
|
|
|
(setq org-agenda-clockreport-parameter-plist |
|
|
|
|
(quote (:link t :maxlevel 7 :fileskip0 t :compact t :narrow 80 :formula %))) |
|
|
|
|
|
|
|
|
|
(setq org-agenda-custom-commands |
|
|
|
|
'( |
|
|
|
|
("g" "Get Things Done (GTD)" |
|
|
|
|
((agenda "" |
|
|
|
|
( |
|
|
|
|
;; (org-agenda-skip-function |
|
|
|
|
;; '(org-agenda-skip-entry-if 'deadline)) |
|
|
|
|
(org-deadline-warning-days 0) |
|
|
|
|
(org-agenda-time-grid) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
(todo "NEXT" |
|
|
|
|
( |
|
|
|
|
;; (org-agenda-skip-function |
|
|
|
|
;; '(org-agenda-skip-entry-if 'deadline)) |
|
|
|
|
(org-agenda-prefix-format " %i %-12:c [%-4e] ") |
|
|
|
|
(org-agenda-overriding-header "Tasks\n"))) |
|
|
|
|
(agenda "dead" |
|
|
|
|
((org-agenda-entry-types '(:deadline)) |
|
|
|
|
;;(org-agenda-format-date "") |
|
|
|
|
(org-deadline-warning-days 7) |
|
|
|
|
(org-agenda-skip-function |
|
|
|
|
'(org-agenda-skip-entry-if 'notregexp "\\* NEXT")) |
|
|
|
|
(org-agenda-overriding-header "Deadlines\n"))) |
|
|
|
|
(tags-todo "inbox" |
|
|
|
|
((org-agenda-prefix-format " %?-12t% s") |
|
|
|
|
(org-agenda-overriding-header "Inbox\n"))) |
|
|
|
|
(tags "CLOSED>=\"<today>\"" |
|
|
|
|
((org-agenda-overriding-header "Completed today\n"))))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
("T" "Weekly review with tasks for team meetings" |
|
|
|
|
( |
|
|
|
|
(agenda "" |
|
|
|
|
'( |
|
|
|
|
("g" "Get Things Done (GTD)" |
|
|
|
|
((agenda "" |
|
|
|
|
( |
|
|
|
|
;; (org-agenda-skip-function |
|
|
|
|
;; '(org-agenda-skip-entry-if 'deadline)) |
|
|
|
|
(org-deadline-warning-days 0) |
|
|
|
|
(org-agenda-time-grid) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
(todo "NEXT" |
|
|
|
|
( |
|
|
|
|
(org-deadline-warning-days 0) |
|
|
|
|
(org-agenda-overriding-header "Agenda since last Thursday\n") |
|
|
|
|
(org-agenda-start-on-weekday 4) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
(todo "DONE" |
|
|
|
|
( |
|
|
|
|
(org-agenda-prefix-format " %i ") |
|
|
|
|
(org-agenda-start-on-weekday 4) |
|
|
|
|
(org-agenda-overriding-header "Tasks done since last Thursday\n") |
|
|
|
|
)) |
|
|
|
|
;; (org-agenda-skip-function |
|
|
|
|
;; '(org-agenda-skip-entry-if 'deadline)) |
|
|
|
|
(org-agenda-prefix-format " %i %-12:c [%-4e] ") |
|
|
|
|
(org-agenda-overriding-header "Tasks\n"))) |
|
|
|
|
(agenda "dead" |
|
|
|
|
((org-agenda-entry-types '(:deadline)) |
|
|
|
|
;;(org-agenda-format-date "") |
|
|
|
|
(org-deadline-warning-days 7) |
|
|
|
|
(org-agenda-skip-function |
|
|
|
|
'(org-agenda-skip-entry-if 'notregexp "\\* NEXT")) |
|
|
|
|
(org-agenda-overriding-header "Deadlines\n"))) |
|
|
|
|
(tags-todo "inbox" |
|
|
|
|
((org-agenda-prefix-format " %?-12t% s") |
|
|
|
|
(org-agenda-overriding-header "Inbox\n"))) |
|
|
|
|
(tags "CLOSED>=\"<today>\"" |
|
|
|
|
((org-agenda-overriding-header "Completed today\n"))))) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
(setq org-todo-keywords |
|
|
|
|
'((sequence "TODO(t)" "NEXT(n)" "WAIT(w)" "RUNNING(r)" "|" "DONE(d)" "CANCELLED(c)" ))) |
|
|
|
|
'((sequence "TODO(t)" "NEXT(n)" "WAIT(w)" "RUNNING(r)" "|" "DONE(d)" "CANCELLED(c)" ))) |
|
|
|
|
|
|
|
|
|
(setq org-clock-out-remove-zero-time-clocks t) |
|
|
|
|
) ;; with-eval-after-load |
|
|
|
|
|
|
|
|
|
;; (setq org-agenda-hide-tags-regexp ".") |
|
|
|
|
(with-eval-after-load 'markdown-mode |
|
|
|
|
(define-key markdown-mode-map (kbd "C-c x") 'my/markdown-toggle-checkbox)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
) ;; with eval after load |
|
|
|
|
(setq calendar-week-start-day 1) ;; calendar start on Monday |
|
|
|
|
|
|
|
|
|
(defadvice projectile-project-root (around ignore-remote first activate) |
|
|
|
|
(unless (file-remote-p default-directory) ad-do-it)) |
|
|
|
|
|
|
|
|
|
;; org-alert configuration |
|
|
|
|
;; https://github.com/jwiegley/alert |
|
|
|
|
;; https://www.youtube.com/watch?v=wKTKmE1wLyw |
|
|
|
|
@ -757,11 +756,20 @@ before packages are loaded." |
|
|
|
|
(setq alert-default-style 'osx-notifier) ;; Use terminal-notifier for macOS notifications |
|
|
|
|
(setq org-alert-notify-cutoff 10 ;; Notify 10 minutes before the deadline |
|
|
|
|
org-alert-notification-title "Org Alert Reminder!" |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
(org-alert-enable)) |
|
|
|
|
|
|
|
|
|
(defun my/markdown-toggle-checkbox () |
|
|
|
|
"Toggle checkbox in markdown list at point." |
|
|
|
|
(interactive) |
|
|
|
|
(save-excursion |
|
|
|
|
(beginning-of-line) |
|
|
|
|
(when (looking-at "\\s-*[-*]\\s-+\\[\\([ xX]\\)\\]") |
|
|
|
|
(replace-match |
|
|
|
|
(if (string= (match-string 1) " ") |
|
|
|
|
"x" " ") nil nil nil 1)))) |
|
|
|
|
|
|
|
|
|
) ;; user-config |
|
|
|
|
) ;; user-config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Do not write anything past this comment. This is where Emacs will |
|
|
|
|
@ -771,20 +779,61 @@ before packages are loaded." |
|
|
|
|
This is an auto-generated function, do not modify its content directly, use |
|
|
|
|
Emacs customize menu instead. |
|
|
|
|
This function is called at the very end of Spacemacs initialization." |
|
|
|
|
(custom-set-variables |
|
|
|
|
;; custom-set-variables was added by Custom. |
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful. |
|
|
|
|
;; Your init file should contain only one such instance. |
|
|
|
|
;; If there is more than one, they won't work right. |
|
|
|
|
'(desktop-save-mode t) |
|
|
|
|
'(org-safe-remote-resources |
|
|
|
|
'("\\`https://fniessen\\.github\\.io/org-html-themes/org/theme-Bigblow\\.setup\\'")) |
|
|
|
|
'(package-selected-packages |
|
|
|
|
'(org-alert web-mode git-link git-messenger git-modes git-timemachine gitignore-templates helm-git-grep helm-ls-git orgit-forge orgit forge ghub closql emacsql treepy smeargle treemacs-magit magit magit-section git-commit with-editor dash blacken code-cells company-anaconda anaconda-mode cython-mode helm-cscope helm-pydoc importmagic epc ctable concurrent deferred live-py-mode lsp-pyright lsp-python-ms nose pip-requirements pipenv load-env-vars pippel transient seq compat py-isort pydoc pyenv-mode pythonic pylookup pytest pyvenv sphinx-doc stickyfunc-enhance xcscope yapfify add-node-modules-path counsel-gtags counsel swiper ivy ggtags helm-gtags wfnames impatient-mode import-js grizzl js-doc js2-refactor multiple-cursors livid-mode nodejs-repl npm-mode prettier-js skewer-mode js2-mode simple-httpd tern web-beautify grab-mac-link org-mac-link ac-ispell auto-complete auto-yasnippet company-shell dap-mode lsp-docker bui yaml evil-org fish-mode flycheck-bashate flycheck-pos-tip pos-tip fuzzy gh-md gnuplot helm-c-yasnippet helm-company company helm-lsp helm-org-rifle htmlize insert-shebang lsp-origami origami lsp-treemacs lsp-ui lsp-mode markdown-toc markdown-mode mmm-mode org org-cliplink org-contrib org-download org-jira org-mime org-pomodoro alert log4e gntp org-present org-projectile org-category-capture org-rich-yank ox-jira ox-twbs shfmt reformatter yasnippet-snippets yasnippet ws-butler writeroom-mode winum which-key volatile-highlights vim-powerline vi-tilde-fringe uuidgen use-package undo-tree treemacs-projectile treemacs-persp treemacs-icons-dired treemacs-evil toc-org term-cursor symon symbol-overlay string-inflection string-edit-at-point spacemacs-whitespace-cleanup spacemacs-purpose-popwin spaceline-all-the-icons space-doc restart-emacs request rainbow-delimiters quickrun popwin pcre2el password-generator paradox overseer org-superstar open-junk-file nameless multi-line macrostep lorem-ipsum link-hint inspector info+ indent-guide hybrid-mode hungry-delete holy-mode hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt help-fns+ helm-xref helm-themes helm-swoop helm-purpose helm-projectile helm-org helm-mode-manager helm-make helm-descbinds helm-ag google-translate golden-ratio font-lock+ flycheck-package flycheck-elsa flx-ido fancy-battery eyebrowse expand-region evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-textobj-line evil-surround evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-goggles evil-exchange evil-evilified-state evil-escape evil-easymotion evil-collection evil-cleverparens evil-args evil-anzu eval-sexp-fu emr elisp-slime-nav elisp-def editorconfig dumb-jump drag-stuff dotenv-mode dired-quick-sort diminish devdocs define-word column-enforce-mode clean-aindent-mode centered-cursor-mode auto-highlight-symbol auto-compile aggressive-indent ace-link ace-jump-helm-line))) |
|
|
|
|
(custom-set-faces |
|
|
|
|
;; custom-set-faces was added by Custom. |
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful. |
|
|
|
|
;; Your init file should contain only one such instance. |
|
|
|
|
;; If there is more than one, they won't work right. |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
(custom-set-variables |
|
|
|
|
;; custom-set-variables was added by Custom. |
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful. |
|
|
|
|
;; Your init file should contain only one such instance. |
|
|
|
|
;; If there is more than one, they won't work right. |
|
|
|
|
'(package-selected-packages |
|
|
|
|
'(a ace-jump-helm-line ace-link aggressive-indent aio alert all-the-icons |
|
|
|
|
anaconda-mode auto-compile auto-highlight-symbol auto-yasnippet blacken |
|
|
|
|
bui centered-cursor-mode clean-aindent-mode closql code-cells code-review |
|
|
|
|
column-enforce-mode company company-anaconda company-box |
|
|
|
|
company-quickhelp company-shell company-statistics company-web concurrent |
|
|
|
|
ctable cython-mode dap-mode deferred define-word devdocs diminish |
|
|
|
|
dired-quick-sort disable-mouse docker dockerfile-mode dotenv-mode |
|
|
|
|
drag-stuff dumb-jump edit-indirect editorconfig elisp-def elisp-demos |
|
|
|
|
elisp-slime-nav emacsql emmet-mode emojify emr epc eval-sexp-fu evil-anzu |
|
|
|
|
evil-args evil-cleverparens evil-collection evil-easymotion evil-escape |
|
|
|
|
evil-evilified-state evil-exchange evil-goggles evil-iedit-state |
|
|
|
|
evil-indent-plus evil-lion evil-lisp-state evil-matchit evil-mc |
|
|
|
|
evil-nerd-commenter evil-numbers evil-org evil-surround evil-textobj-line |
|
|
|
|
evil-tutor evil-unimpaired evil-visual-mark-mode evil-visualstar |
|
|
|
|
expand-region eyebrowse fancy-battery fish-mode flx-ido flycheck-bashate |
|
|
|
|
flycheck-elsa flycheck-package flycheck-pos-tip forge frame-local gh-md |
|
|
|
|
ghub git-link git-messenger git-modes git-timemachine gitignore-templates |
|
|
|
|
gntp gnuplot golden-ratio google-translate haml-mode helm-ag |
|
|
|
|
helm-c-yasnippet helm-comint helm-company helm-css-scss helm-descbinds |
|
|
|
|
helm-git-grep helm-ls-git helm-lsp helm-make helm-mode-manager helm-org |
|
|
|
|
helm-org-rifle helm-projectile helm-purpose helm-pydoc helm-swoop |
|
|
|
|
helm-themes helm-xref hide-comnt hierarchy highlight-indentation |
|
|
|
|
highlight-numbers highlight-parentheses hl-todo holy-mode htmlize |
|
|
|
|
hungry-delete hybrid-mode impatient-mode importmagic indent-guide info+ |
|
|
|
|
insert-shebang inspector js-doc js2-mode js2-refactor json-mode |
|
|
|
|
json-navigator json-reformat json-snatcher link-hint live-py-mode |
|
|
|
|
livid-mode load-env-vars log4e lorem-ipsum lsp-docker lsp-mode |
|
|
|
|
lsp-origami lsp-pyright lsp-treemacs lsp-ui macrostep magit magit-section |
|
|
|
|
markdown-mode markdown-toc multi-line multiple-cursors nameless |
|
|
|
|
nodejs-repl nose npm-mode open-junk-file org-alert org-category-capture |
|
|
|
|
org-cliplink org-contrib org-download org-jira org-mac-link org-mime |
|
|
|
|
org-pomodoro org-present org-project-capture org-projectile org-rich-yank |
|
|
|
|
org-superstar orgit orgit-forge origami overseer ox-jira ox-pandoc |
|
|
|
|
ox-twbs pandoc-mode paradox password-generator pcre2el pip-requirements |
|
|
|
|
pipenv pippel poetry popwin pos-tip prettier-js pug-mode py-isort pydoc |
|
|
|
|
pyenv-mode pylookup pytest pythonic pyvenv quickrun rainbow-delimiters |
|
|
|
|
request restart-emacs sass-mode scss-mode shfmt simple-httpd skewer-mode |
|
|
|
|
slim-mode smeargle space-doc spaceline spacemacs-purpose-popwin |
|
|
|
|
spacemacs-whitespace-cleanup sphinx-doc string-edit-at-point |
|
|
|
|
string-inflection symbol-overlay symon tablist tagedit term-cursor tern |
|
|
|
|
toc-org toml-mode transient treemacs-evil treemacs-icons-dired |
|
|
|
|
treemacs-magit treemacs-persp treemacs-projectile treepy undo-fu |
|
|
|
|
undo-fu-session vi-tilde-fringe vim-powerline volatile-highlights vundo |
|
|
|
|
web-beautify web-completion-data web-mode which-key winum with-editor |
|
|
|
|
writeroom-mode ws-butler yaml yapfify yasnippet yasnippet-snippets))) |
|
|
|
|
(custom-set-faces |
|
|
|
|
;; custom-set-faces was added by Custom. |
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful. |
|
|
|
|
;; Your init file should contain only one such instance. |
|
|
|
|
;; If there is more than one, they won't work right. |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
|