From 441ec34e32862306f93ae35e924c02185a52d4a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Fri, 25 Nov 2022 15:46:34 +0100 Subject: configs Fix habit logger shortcut Safe variables Python --- config/awesome/rc.lua | 2 +- config/doom/config.org | 10 +++++++++- config/doom/custom.el | 33 +++++++++++++++++++++++++++++++-- 3 files changed, 41 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 08a5794..74c49e6 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -63,7 +63,7 @@ local tools = { video = "vlc", pass = "passmenu", rofi_run = "rofi -show combi", - habit = "/home/titan/dev/helpful_scripts/guile/habit.scm", + habit = "/home/titan/dev/dotfiles/bin/habit", } -- Default modkey. diff --git a/config/doom/config.org b/config/doom/config.org index 3d203aa..b0487a0 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -161,7 +161,7 @@ this new window. "p" #'cal-sync-push "f" #'cal-sync-import-file)) :config - (setq cal-sync-url "https://cloud.oscarnajera.com/remote.php/dav/calendars/oscar" + (setq cal-sync-url "https://oscar@cloud.oscarnajera.com/remote.php/dav/calendars/oscar" cal-sync-calendar-id "personal-1" org-icalendar-date-time-format ":%Y%m%dT%H%M%SZ")) #+end_src @@ -564,3 +564,11 @@ Emacs mode for managing ledger text files #+begin_src emacs-lisp (use-package! mpc) #+end_src + +#+begin_src emacs-lisp :tangle "packages.el" +;; (package! journalctl-mode) +#+end_src + +#+begin_src emacs-lisp +;; (use-package! journalctl-mode) +#+end_src diff --git a/config/doom/custom.el b/config/doom/custom.el index 9ea349e..b870478 100644 --- a/config/doom/custom.el +++ b/config/doom/custom.el @@ -6,9 +6,38 @@ '(ignored-local-variable-values '((grep-find-ignored-directories ".git" ".venv" "node_modules" ".mypy_cache" ".pytest_cache" "SCCS" "RCS" "CVS" "MCVS" ".src" ".svn" ".git" ".hg" ".bzr" "_MTN" "_darcs" "{arch}") (grep-find-ignored-files "*.min.js" "*.standalone.js" "*.map" "*.gz" ".#*" "*.o" "*~" "*.bin" "*.lbin" "*.so" "*.a" "*.ln" "*.blg" "*.bbl" "*.elc" "*.lof" "*.glo" "*.idx" "*.lot" "*.fmt" "*.tfm" "*.class" "*.fas" "*.lib" "*.mem" "*.x86f" "*.sparcf" "*.dfsl" "*.pfsl" "*.d64fsl" "*.p64fsl" "*.lx64fsl" "*.lx32fsl" "*.dx64fsl" "*.dx32fsl" "*.fx64fsl" "*.fx32fsl" "*.sx64fsl" "*.sx32fsl" "*.wx64fsl" "*.wx32fsl" "*.fasl" "*.ufsl" "*.fsl" "*.dxl" "*.lo" "*.la" "*.gmo" "*.mo" "*.toc" "*.aux" "*.cp" "*.fn" "*.ky" "*.pg" "*.tp" "*.vr" "*.cps" "*.fns" "*.kys" "*.pgs" "*.tps" "*.vrs" "*.pyc" "*.pyo"))) - '(package-selected-packages '(youtube-sub-extractor elpher adoc-mode logview)) + '(package-selected-packages '(elpher adoc-mode logview)) '(safe-local-variable-values - '((cider-default-cljs-repl . shadow) + '((eval eval-after-load "yapfify" + '(defun yapfify-call-bin + (input-buffer output-buffer start-line end-line) + "Call process yapf on INPUT-BUFFER saving the output to OUTPUT-BUFFER. + +Return the exit code. START-LINE and END-LINE specify region to +format." + (with-current-buffer input-buffer + (call-process-region + (point-min) + (point-max) + (concat + (projectile-locate-dominating-file default-directory dir-locals-file) + "scripts/run-pipenv") + nil output-buffer nil "run" "yapf" "-l" + (concat + (number-to-string start-line) + "-" + (number-to-string end-line)))))) + (eval setq flycheck-python-pylint-executable + (concat + (projectile-locate-dominating-file default-directory dir-locals-file) + "scripts/run-pylint")) + (eval setq flycheck-python-mypy-executable + (concat + (projectile-locate-dominating-file default-directory dir-locals-file) + "scripts/run-mypy")) + (grep-find-ignored-directories ".git" ".venv" "node_modules" ".mypy_cache" ".pytest_cache" "SCCS" "RCS" "CVS" "MCVS" ".src" ".svn" ".git" ".hg" ".bzr" "_MTN" "_darcs" "{arch}") + (grep-find-ignored-files "*.min.js" "*.standalone.js" "*.map" "*.gz" ".#*" "*.o" "*~" "*.bin" "*.lbin" "*.so" "*.a" "*.ln" "*.blg" "*.bbl" "*.elc" "*.lof" "*.glo" "*.idx" "*.lot" "*.fmt" "*.tfm" "*.class" "*.fas" "*.lib" "*.mem" "*.x86f" "*.sparcf" "*.dfsl" "*.pfsl" "*.d64fsl" "*.p64fsl" "*.lx64fsl" "*.lx32fsl" "*.dx64fsl" "*.dx32fsl" "*.fx64fsl" "*.fx32fsl" "*.sx64fsl" "*.sx32fsl" "*.wx64fsl" "*.wx32fsl" "*.fasl" "*.ufsl" "*.fsl" "*.dxl" "*.lo" "*.la" "*.gmo" "*.mo" "*.toc" "*.aux" "*.cp" "*.fn" "*.ky" "*.pg" "*.tp" "*.vr" "*.cps" "*.fns" "*.kys" "*.pgs" "*.tps" "*.vrs" "*.pyc" "*.pyo") + (cider-default-cljs-repl . shadow) (cider-shadow-cljs-default-options . "app") (cider-preferred-build-tool . clojure-cli) (cider-clojure-cli-global-options . "-A:dev") -- cgit v1.2.3