@@ -32,7 +32,10 @@ This function should only modify configuration layer settings."
;; List of configuration layers to load.
;; List of configuration layers to load.
dotspacemacs-configuration-layers
dotspacemacs-configuration-layers
'(nginx
'(swift
yaml
themes-megapack
nginx
toml
toml
html
html
python
python
@@ -74,6 +77,7 @@ This function should only modify configuration layer settings."
;; version-control
;; version-control
treemacs
treemacs
docker
docker
terraform
)
)
@@ -91,6 +95,7 @@ This function should only modify configuration layer settings."
dotspacemacs-additional-packages '(
dotspacemacs-additional-packages '(
org-mac-link
org-mac-link
org-alert
org-alert
;org-caldav
;org-protocol
;org-protocol
)
)
@@ -278,10 +283,11 @@ It should only modify the values of Spacemacs settings."
;; fixed-pitch faces. The `:size' can be specified as
;; fixed-pitch faces. The `:size' can be specified as
;; a non-negative integer (pixel size), or a floating-point (point size).
;; a non-negative integer (pixel size), or a floating-point (point size).
;; Point size is recommended, because it's device independent. (default 10.0)
;; Point size is recommended, because it's device independent. (default 10.0)
dotspacemacs-default-font '("Source Code Pro for Powerline"
;; commented out on 30.7.2025 - seems not to have effect
:size 18.0
;; dotspacemacs-default-font '("Source Code Pro for Powerline"
:w eight normal
;; :h eight 180
:width normal)
;; :weight normal
;; :width normal)
;; The leader key (default "SPC")
;; The leader key (default "SPC")
dotspacemacs-leader-key "SPC"
dotspacemacs-leader-key "SPC"
@@ -347,7 +353,7 @@ It should only modify the values of Spacemacs settings."
;; If non-nil, the paste transient-state is enabled. While enabled, after you
;; 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
;; paste something, pressing `C-j' and `C-k' several times cycles through the
;; elements in the `kill-ring'. (default nil)
;; elements in the `kill-ring'. (default nil)
dotspacemacs-enable-paste-transient-state t
dotspacemacs-enable-paste-transient-state nil
;; Which-key delay in seconds. The which-key buffer is the popup listing
;; Which-key delay in seconds. The which-key buffer is the popup listing
;; the commands bound to the current keystroke sequence. (default 0.4)
;; the commands bound to the current keystroke sequence. (default 0.4)
@@ -592,6 +598,8 @@ This function is called immediately after `dotspacemacs/init', before layer
configuration.
configuration.
It is mostly for variables that should be set before packages are loaded.
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."
If you are unsure, try setting them in `dotspacemacs/user-config' first."
;; (add-to-list 'load-path "/Users/jetpac/Documents/emacs/tramp-mirror/tramp/lisp")
)
)
@@ -609,6 +617,33 @@ This function is called at the very end of Spacemacs startup, after layer
configuration.
configuration.
Put your configuration code here, except for variables that should be set
Put your configuration code here, except for variables that should be set
before packages are loaded."
before packages are loaded."
;; setting gui font for gui only
(defun my/set-gui-font ()
(when (display-graphic-p)
(set-frame-font "MesloLGS Nerd Font-18" t t)))
;; (set-frame-font "Source Code Pro for Powerline-18" t t)))
(add-hook 'after-make-frame-functions
(lambda (frame)
(select-frame frame)
(my/set-gui-font)))
;; Also apply font immediately if current frame is GUI
(my/set-gui-font)
;; end of setting gui font
;; (require 'tramp)
;; for 24bit colors to work (and extra themes), use TERM=xterm-24bit
;; as described at https://github.com/syl20bnr/spacemacs/wiki/Terminal
;; for pandoc to work
(add-to-list 'exec-path "/opt/homebrew/bin")
(setenv "PATH" (concat "/opt/homebrew/bin:" (getenv "PATH")))
;; Proxy toggle function
;; Proxy toggle function
(setq http_proxy "http://www-proxy.uk.oracle.com:80")
(setq http_proxy "http://www-proxy.uk.oracle.com:80")
(defun toggle-proxy ()
(defun toggle-proxy ()
@@ -632,7 +667,7 @@ before packages are loaded."
(defun set-dotfiles-environment ()
(defun set-dotfiles-environment ()
"Set environment variables for the dotfiles repository."
"Set environment variables for the dotfiles repository."
(interactive)
(interactive)
(setenv "GIT_DIR" (expand-file-name "~/.cfg/.git "))
(setenv "GIT_DIR" (expand-file-name "~/.cfg/"))
(setenv "GIT_WORK_TREE" (expand-file-name "~"))
(setenv "GIT_WORK_TREE" (expand-file-name "~"))
(message "Dotfiles environment set."))
(message "Dotfiles environment set."))
@@ -660,6 +695,56 @@ before packages are loaded."
(setq org-duration-format 'h:mm)
(setq org-duration-format 'h:mm)
;; ================================================================================
;; config for org-caldav for my nextcloud installation
;; not working to my satisfaction yet - only configured for not used files
;; inspiration from https://www.reddit.com/r/orgmode/comments/8rl8ep/making_orgcaldav_useable/
;; doc: https://github.com/dengste/org-caldav
;; URL of the caldav server
(setq org-caldav-url "https://next.cloud.jetpac.org/remote.php/dav/calendars/jetpac")
(setq org-caldav-calendars
'((:calendar-id "personal"
:files ("~/Documents/org/synced_calendar.org")
;; :inbox ("~/Documents/org/caldav/from-calendar.org")
;; :sync-direction ('org->cal)
))
)
;; config
(setq org-icalendar-alarm-time 1)
;; This makes sure to-do items as a category can show up on the calendar
(setq org-icalendar-include-todo t)
;; This ensures all org "deadlines" show up, and show up as due dates
(setq org-icalendar-use-deadline '(event-if-todo event-if-not-todo todo-due))
;; This ensures "scheduled" org items show up, and show up as start times
(setq org-icalendar-use-scheduled '(todo-start event-if-todo event-if-not-todo))
(setq org-caldav-backup-file "~/Documents/org/caldav/org-caldav-backup.org")
(setq org-caldav-save-directory "~/Documents/org/caldav/")
;; ;; calendar ID on server
;; (setq org-caldav-calendar-id "personal")
;; ;; Org filename where new entries from calendar stored
(setq org-caldav-inbox "~/Documents/org/caldav/from-calendar.org")
;; ;; Additional Org files to check for calendar events
;; ;; this line breaks the sync!
;; (setq org-caldav-files ("~/Documents/org/caldav/todo.org"))
;; ;; (setq org-caldav-files nil)
;; ;; Usually a good idea to set the timezone manually
;; (setq org-icalendar-timezone "Europe/Prague")
;; ;; sync from org to cal only
;; (setq org-caldav-sync-direction "org->cal")
;; ;; (setq org-caldav-sync-direction "twoway")
;; ================================================================================
;; Define the custum capture templates
;; Define the custum capture templates
(setq org-capture-templates
(setq org-capture-templates
'(("t" "Todo [inbox] clock_in clock_resume " entry (file+headline org-default-notes-file "Tasks")
'(("t" "Todo [inbox] clock_in clock_resume " entry (file+headline org-default-notes-file "Tasks")
@@ -685,7 +770,9 @@ before packages are loaded."
(setq org-agenda-files '("~/Documents/org/inbox.org"
(setq org-agenda-files '("~/Documents/org/inbox.org"
"~/Documents/org/projects.org"
"~/Documents/org/projects.org"
"~/Documents/org/someday.org"
"~/Documents/org/someday.org"
"~/Documents/org/calendar.org"))
"~/Documents/org/calendar.org"
"~/Documents/org/synced_calendar.org"
))
@@ -769,6 +856,52 @@ before packages are loaded."
(if (string= (match-string 1) " ")
(if (string= (match-string 1) " ")
"x" " ") nil nil nil 1))))
"x" " ") nil nil nil 1))))
(setq warning-minimum-level :error)
;; 28.4. - terminal clipboard integration
;; (when (and (not (display-graphic-p))
;; (eq system-type 'darwin))
;; (defun copy-to-mac-clipboard (text &optional push)
;; (let ((process-connection-type nil))
;; (let ((proc (start-process "pbcopy" "*Messages*" "pbcopy")))
;; (process-send-string proc text)
;; (process-send-eof proc))))
;; (defun paste-from-mac-clipboard ()
;; (shell-command-to-string "pbpaste"))
;; (setq interprogram-cut-function 'copy-to-mac-clipboard)
;; (setq interprogram-paste-function 'paste-from-mac-clipboard))
;; terminal clipboard that should also work on remote systems
(defun my/set-clipboard-integration ()
(cond
;; macOS in terminal (non-GUI mode) – use pbcopy/pbpaste
((and (eq system-type 'darwin)
(not (display-graphic-p)))
(defun copy-to-mac-clipboard (text &optional push)
(let ((process-connection-type nil))
(let ((proc (start-process "pbcopy" "*Messages*" "pbcopy")))
(process-send-string proc text)
(process-send-eof proc))))
(defun paste-from-mac-clipboard ()
(shell-command-to-string "pbpaste"))
(setq interprogram-cut-function 'copy-to-mac-clipboard)
(setq interprogram-paste-function 'paste-from-mac-clipboard))
;; All other non-GUI modes (e.g., tmux, remote SSH) – use OSC 52
((not (display-graphic-p))
(defun copy-to-osc52 (text &optional push)
(let ((osc52 (concat "\e]52;c;" (base64-encode-string text t) "\a")))
(send-string-to-terminal osc52)))
(setq interprogram-cut-function 'copy-to-osc52)
;; paste not supported with OSC 52, leave interprogram-paste-function nil
(message "Using OSC 52 for clipboard integration"))))
(my/set-clipboard-integration)
) ;; user-config
) ;; user-config
@@ -784,53 +917,84 @@ This function is called at the very end of Spacemacs initialization."
;; If you edit it by hand, you could mess it up, so be careful.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;; If there is more than one, they won't work right.
'(custom-enabled-themes '(spacemacs-dark))
'(custom-safe-themes
'("7fea145741b3ca719ae45e6533ad1f49b2a43bf199d9afaee5b6135fd9e6f9b8"
"810691bd221e4639d5ef736b1bd930a7fb32a7c6043a5634e04f86edea973f6d"
"a0ac98a1bde5d6336295fd350155a4aac1d63c53c1b3773062271074d16ebeb5"
"bbb13492a15c3258f29c21d251da1e62f1abb8bbd492386a673dcfab474186af"
"7fd8b914e340283c189980cd1883dbdef67080ad1a3a9cc3df864ca53bdc89cf" default))
'(package-selected-packages
'(package-selected-packages
'(a ace-jump-helm-line ace-link aggressive-indent aio alert all-the-icons
'(a ace-jump-helm-line ace-link afternoon-theme aggressive-indent aio
anaconda-mode auto-co mpi le auto-highlight-symbol auto-yasnippet blacken
alect-themes alert all-the-icons a mple-theme ample-zen-theme
bui centered-cursor-mode clean-aindent-mode closql code-cells code-review
anaconda-mode anti-zenburn-theme apropospriate-theme auto-compile
auto-highlight-symbol auto-yasnippet autothemer badwolf-theme
birds-of-paradise-plus-theme blacken bubbleberry-theme bui busybee-theme
centered-cursor-mode cherry-blossom-theme chocolate-theme
clean-aindent-mode closql clues-theme code-cells code-review
color-theme-sanityinc-solarized color-theme-sanityinc-tomorrow
column-enforce-mode company company-anaconda company-box
column-enforce-mode company company-anaconda company-box
company-quickhelp company-shell company-statistics company-web concurrent
company-quickhelp company-shell company-statistics company-terraform
ctable cython-mode dap-mode deferred define-word devdocs diminish
company-web concurrent ctable cyberpunk-theme cython-mode dakrone-theme
dired-quick-sort disable-mouse docker dockerfile-mode dotenv-mode
dap-mode darkmine-theme darkokai-theme darktooth-theme deferred
drag-stuff dumb-jump edit-indirect editorconfig elisp-def elisp-demos
define-word devdocs diminish dired-quick-sort disable-mouse django-theme
elisp-slime-nav emacsql emmet-mode emojify emr epc eval-sexp-fu evil-anzu
docker dockerfile-mode doom-themes dotenv-mode dracula-theme drag-stuff
evil-args evil-cleverparens evil-collection evil-easymotion evil-escape
dumb-jump edit-indirect editorconfig ef-themes elisp-def elisp-demos
evil-evilified-state evil-exchange evil-goggles evil-iedit-stat e
elisp-slime-nav emacsql emmet-mode emojify emr epc espresso-them e
evi l-indent-plus evil-lion evil-lisp-state evil-matchit evil-mc
eva l-sexp-fu evil-anzu evil-args evil-cleverparens evil-collection
evil-nerd-commenter evil-numbers evil-org evil-surround evil-t extobj-lin e
evil-easymotion evil-escape evil-evilified-state evil-exchang e
evil-tutor evil-unimpaired evil-visual-mark-mode evil-v isual star
evil-goggles evil-iedit-state evil-indent-plus evil-lion evil-l isp- state
expand-region eyebrowse fancy-battery fish-mode flx-ido flycheck-bashate
evil-matchit evil-mc evil-nerd-commenter evil-numbers evil-org
flycheck-elsa flycheck-package flycheck-pos-tip forge frame-local gh-m d
evil-surround evil-textobj-line evil-tutor evil-unimpaire d
evil-visual-mark-mode evil-visualstar exotica-theme expand-region
eyebrowse eziam-themes fancy-battery farmhouse-themes fish-mode
flatland-theme flatui-theme flx-ido flycheck-bashate flycheck-elsa
flycheck-package flycheck-pos-tip forge frame-local gandalf-theme gh-md
ghub git-link git-messenger git-modes git-timemachine gitignore-templates
ghub git-link git-messenger git-modes git-timemachine gitignore-templates
gntp gnuplot golden-ratio google-translate haml-mode helm-ag
gntp gnuplot golden-ratio google-translate gotham-theme grandshell-theme
helm-c-yasnippet helm-comint helm-company helm-css-scss helm-descbinds
gruber-darker-theme gruvbox-theme haml-mode hc-zenburn-theme hcl-mode
helm-git-grep helm-ls-git helm-lsp helm-make helm-mode-manager helm-org
helm-ag helm-c-yasnippet helm-comint helm-company helm-css-scss
helm-org-rifle helm-projectile helm-purpose helm-pydoc helm-swoop
helm-descbinds helm-git-grep helm-ls-git helm-lsp helm-make
helm-themes helm-xref hide-comnt hierarchy highlight-indentation
helm-mode-manager helm-org helm-org-rifle helm-projectile helm-purpose
highlight-numbers highlight-paren thes es hl-todo holy-mode htmliz e
helm-pydoc helm-swoop helm- them es helm-xref hemisu-theme heroku-them e
hungry-delete hybrid-mode impatient-mode importmagic indent-guide info+
hide-comnt hierarchy highlight-indentation highlight-numbers
insert-shebang inspector js-doc js2-mode js2-refactor json -mode
highlight-parentheses hl-todo holy-mode htmlize hungry-delete hybrid -mode
json-navigator json-ref ormat json-snatcher link-hint live-py-mode
impatient-mode imp ort magic indent-guide info+ inkpot-theme insert-shebang
livid-mode load-env-vars log4e lorem-ipsum lsp-docker lsp -mode
inspector ir-black-theme jazz-theme jbeans-theme js-doc js2 -mode
lsp-origami lsp-pyright lsp-treemacs lsp-ui macrostep magit magit-section
js2-refactor json-mode json-navigator json-reformat json-snatcher
markdown-mode markdown-toc multi-line multiple-cursors nameless
kaolin-themes light-soap-theme link-hint live-py-mode livid-mode
nginx-mode nodejs-repl nose npm-mode open-junk-file org-alert
load-env-vars log4e lorem-ipsum lsp-docker lsp-mode lsp-origami
org-category-capture org-cliplink org-contrib org-download org-jira
lsp-pyright lsp-treemacs lsp-ui lush-theme macrostep madhat2r-theme magit
org-mac-link org-mime org-pomodoro org-present org-project-captur e
magit-section markdown-mode markdown-toc material-theme minimal-them e
org-projectile org-rich-yank org-superstar orgit orgit-forge origami
modus-themes moe-theme molokai-theme monochrome-theme monokai-theme
overseer ox-jira ox-pandoc ox-twbs pandoc-mode paradox password-generator
multi-line multiple-cursors mustang-theme nameless naquadah-theme
pcre2el pip-requirements pipenv pippel poetry popwin pos-tip prettier-js
nginx-mode noctilux-theme nodejs-repl nose npm-mode obsidian-theme
pug-mode py-isort pydoc pyenv-mode pylookup pytest pythonic pyvenv
occidental-theme oldlace-theme omtose-phellack-themes open-junk-file
quickrun rainbow-delimiters request restart-emacs sass-mode scss-mode
org-alert org-caldav org-category-capture org-cliplink org-contrib
shfmt simple-httpd skewer-mode slim-mode smeargle space-doc spaceline
org-download org-jira org-mac-link org-mime org-pomodoro org-present
spacemacs-purpose-popwin spacemacs-whitespace-cleanup sphinx-doc
org-project-capture org-projectile org-rich-yank org-superstar
string-edit-at-point string-inflection symbol-overlay symon tablist
organic-green-theme orgit orgit-forge origami overseer ox-jira
tagedit term-cursor tern toc-org toml-mode transient treemacs-evi l
ox-twbs pandoc-mode paradox password-generator pcre2e l
phoenix-dark-mono-theme phoenix-dark-pink-theme pip-requirements pipenv
pippel planet-theme poetry popwin pos-tip prettier-js professional-theme
pug-mode purple-haze-theme py-isort pydoc pyenv-mode pylookup pytest
pythonic pyvenv quickrun railscasts-theme rainbow-delimiters
rebecca-theme request restart-emacs reverse-theme sass-mode scss-mode
seti-theme shfmt simple-httpd skewer-mode slim-mode smeargle smyx-theme
soft-charcoal-theme soft-morning-theme soft-stone-theme solarized-theme
soothe-theme space-doc spacegray-theme spaceline spacemacs-purpose-popwin
spacemacs-whitespace-cleanup sphinx-doc string-edit-at-point
string-inflection subatomic-theme subatomic256-theme sublime-themes
sunny-day-theme symbol-overlay symon tablist tagedit tango-2-theme
tango-plus-theme tangotango-theme tao-theme term-cursor tern
terraform-mode toc-org toml-mode toxi-theme transient treemacs-evil
treemacs-icons-dired treemacs-magit treemacs-persp treemacs-projectile
treemacs-icons-dired treemacs-magit treemacs-persp treemacs-projectile
treepy undo-fu undo-fu-session vi-tilde-fringe vim-powerlin e
treepy twilight-anti-bright-theme twilight-bright-theme twilight-them e
volatile-highlights vundo web-beautify web-completion-data web-mod e
ujelly-theme underwater-theme undo-fu undo-fu-session vi-tilde-fring e
which-key winum with-editor writeroom-mode ws-butler yaml yapfify
vim-powerline volatile-highlights vundo web-beautify web-completion-data
yasnippet yasnippet-snippets)))
web-mode which-key white-sand-theme winum with-editor writeroom-mode
ws-butler yaml yaml-mode yapfify yasnippet yasnippet-snippets
zen-and-art-theme zenburn-theme zonokai-emacs)))
(custom-set-faces
(custom-set-faces
;; custom-set-faces was added by Custom.
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; If you edit it by hand, you could mess it up, so be careful.