Compare commits

...

8 Commits

Author SHA1 Message Date
Jeremy Dormitzer
c153b9f9a9 Account for providers gunicorn changes 2021-04-15 15:28:34 -04:00
Jeremy Dormitzer
a20b5f5662 Run ean-hotels not in gunicorn 2021-04-15 15:27:42 -04:00
Jeremy Dormitzer
03d6a83bc4 Specify PORT for secrets 2021-04-15 15:27:33 -04:00
Jeremy Dormitzer
83c442798d Formatting 2021-04-15 15:27:28 -04:00
Jeremy Dormitzer
ce0bc6b3c3 Disable the flake8 flycheck checker 2021-04-15 15:27:10 -04:00
Jeremy Dormitzer
3bfcbd3451 Bind keys to rescale text 2021-04-15 15:26:56 -04:00
Jeremy Dormitzer
d98ce82424 Add xml-pretty-print 2021-04-15 15:26:47 -04:00
Jeremy Dormitzer
b29c541f33 Add wallabag.el 2021-04-15 15:26:38 -04:00
6 changed files with 53 additions and 13 deletions

View File

@ -203,6 +203,7 @@
:tags '(lola backend)
:command "python"
:args '("bin/cmdline.py" "www")
:env '(("PORT" "7450"))
:cwd "~/lola/secrets"
:truncate-output t
:stop-signal 'int
@ -263,7 +264,7 @@
:name "priceline-service"
:tags '(lola backend)
:command "~/lola/python_services/priceline/bin/start.sh"
:args '("web")
:args '("web-dev")
:cwd "~/lola/python_services"
:stop-signal 'int
:init-async (python-service-setup "~/lola/python_services/.venv"
@ -275,7 +276,7 @@
:tags '(lola backend)
:command "bash"
:args '("-c"
"priceline_cars/bin/start.sh web >> ~/lola/logs/priceline-cars.log 2>&1")
"priceline_cars/bin/start.sh web-dev >> ~/lola/logs/priceline-cars.log 2>&1")
:cwd "~/lola/python_services"
:inhibit-process-filter t
:file "~/lola/logs/priceline-cars.log"
@ -288,7 +289,7 @@
:name "threev-service"
:tags '(lola backend)
:command "~/lola/python_services/threev/bin/start.sh"
:args '("web")
:args '("web-dev")
:cwd "~/lola/python_services"
:stop-signal 'int
:init-async (python-service-setup "~/lola/python_services/.venv"
@ -299,7 +300,7 @@
:name "amd-flight-service"
:tags '(lola backend)
:command "~/lola/python_services/amd_flight/bin/start.sh"
:args '("web")
:args '("web-dev")
:cwd "~/lola/python_services"
:stop-signal 'int
:init-async (python-service-setup "~/lola/python_services/.venv"
@ -311,7 +312,7 @@
:tags '(lola backend)
:command "bash"
:args '("-c"
"ean_hotels/bin/start.sh web >> ~/lola/logs/ean-hotels.log 2>&1")
"ean_hotels/bin/start.sh web-dev >> ~/lola/logs/ean-hotels.log 2>&1")
:cwd "~/lola/python_services"
:inhibit-process-filter t
:file "~/lola/logs/ean-hotels.log"

View File

@ -29,7 +29,8 @@
:predicate flycheck-buffer-saved-p
:working-directory (lambda (checker)
(or (projectile-compilation-dir)
default-directory))))
default-directory)))
(add-to-list 'flycheck-disabled-checkers 'python-flake8))
;; pyvenv to track virtual environments
(use-package pyvenv

View File

@ -26,4 +26,13 @@
(delete-dups (font-family-list)))))
(set-frame-font font))
(defun text-scale-reset ()
(interactive)
(text-scale-increase 0))
(general-def
"C-c +" #'text-scale-increase
"C-c -" #'text-scale-decrease
"C-c 0" #'text-scale-reset)
(provide 'init-ui)

View File

@ -0,0 +1,17 @@
;; -*- lexical-binding: t; -*-
(use-package wallabag
:straight (:host github :repo "chenyanming/wallabag.el" :files ("*.el" "emojis.alist"))
:commands (wallabag
wallabag-find
wallabag-full-update
wallabag-request-token
wallabag-add-entry
wallabag-insert-entry)
:config
(setq wallabag-host "https://wallabag.jeremydormitzer.com"
wallabag-username "jdormit"
wallabag-password (password-store-get "wallabag.jeremydormitzer.com")
wallabag-clientid (password-store-get "wallabag-client-id")
wallabag-secret (password-store-get "wallabag-client-secret")))
(provide 'init-wallabag)

View File

@ -4,6 +4,17 @@
:straight (:type built-in)
:defer t
:config
(defun xml-pretty-print ()
(interactive)
(let ((start (if (region-active-p) (region-beginning) (point-min)))
(end (if (region-active-p) (region-end) (point-max))))
(cond
((executable-find "tidy")
(shell-command-on-region start end "tidy -wrap 88 -q -i -xml" nil t))
((executable-find "xmllint")
(shell-command-on-region start end "xmllint --format -" nil t))
(t (sgml-pretty-print start end)))))
(general-def nxml-mode-map "C-M-\\" #'xml-pretty-print)
(add-to-list 'hs-special-modes-alist
'(nxml-mode
"<!--\\|<[^/>]*[^/]>" ;; regexp for start block

View File

@ -105,6 +105,7 @@
(require 'init-homebrew)
(require 'init-elfeed)
(require 'init-1pass)
(require 'init-wallabag)
(require 'init-lola)
(when (file-exists-p custom-file)