feat(syncthing): Add syncthing package with custom faces
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
(w32-shell-execute "open" "runemacs.exe")
|
(w32-shell-execute "open" "runemacs.exe")
|
||||||
(kill-emacs)))
|
(kill-emacs)))
|
||||||
|
|
||||||
|
(defun disable-truncate-lines ()
|
||||||
|
(toggle-truncate-lines 1))
|
||||||
|
|
||||||
(defun my/jinx-smart-toggle ()
|
(defun my/jinx-smart-toggle ()
|
||||||
"Toggle jinx-mode smartly.
|
"Toggle jinx-mode smartly.
|
||||||
Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise toggle global-jinx-mode."
|
Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise toggle global-jinx-mode."
|
||||||
|
|||||||
@@ -147,7 +147,8 @@
|
|||||||
:prefix "C-c x"
|
:prefix "C-c x"
|
||||||
"e" 'eshell
|
"e" 'eshell
|
||||||
"E" 'eat
|
"E" 'eat
|
||||||
"p" 'proced)
|
"p" 'proced
|
||||||
|
"s" 'syncthing)
|
||||||
|
|
||||||
;; scratch buffer
|
;; scratch buffer
|
||||||
(if *is-mac*
|
(if *is-mac*
|
||||||
|
|||||||
@@ -183,6 +183,11 @@
|
|||||||
'proced-format-alist
|
'proced-format-alist
|
||||||
'(custom user pid ppid sess tree pcpu pmem rss start time state (args comm))))
|
'(custom user pid ppid sess tree pcpu pmem rss start time state (args comm))))
|
||||||
|
|
||||||
|
;; syncthing
|
||||||
|
(use-package syncthing
|
||||||
|
:hook
|
||||||
|
(syncthing-mode . disable-truncate-lines))
|
||||||
|
|
||||||
(provide 'init-package)
|
(provide 'init-package)
|
||||||
|
|
||||||
;;; init-package.el ends here
|
;;; init-package.el ends here
|
||||||
|
|||||||
@@ -119,7 +119,24 @@
|
|||||||
`(proced-executable ((,class (:foreground ,cyan))))
|
`(proced-executable ((,class (:foreground ,cyan))))
|
||||||
`(proced-run-status-code ((,class (:foreground ,green))))
|
`(proced-run-status-code ((,class (:foreground ,green))))
|
||||||
`(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red))))
|
`(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red))))
|
||||||
`(proced-time-colon ((,class (:foreground ,violet)))))))
|
`(proced-time-colon ((,class (:foreground ,violet))))
|
||||||
|
|
||||||
|
`(syncthing-bold ((,class (:inherit bold))))
|
||||||
|
`(syncthing-italic ((,class (:inherit italic))))
|
||||||
|
`(syncthing-my-id ((,class (:foreground ,blue :weight bold))))
|
||||||
|
`(syncthing-rate-upload ((,class (:foreground ,green))))
|
||||||
|
`(syncthing-rate-download ((,class (:foreground ,blue :weight bold))))
|
||||||
|
`(syncthing-uptime ((,class (:foreground ,magenta :wegiht bold))))
|
||||||
|
`(syncthing-count-discovery ((,class (:foreground ,blue :weight bold))))
|
||||||
|
`(syncthing-count-listeners ((,class (:foreground ,green :weight bold))))
|
||||||
|
`(syncthing-count-local-bytes ((,class (:foreground ,cyan :weight bold))))
|
||||||
|
`(syncthing-count-local-files ((,class (:inherit default :weight bold))))
|
||||||
|
`(syncthing-count-local-folders ((,class (:foreground ,yellow :weight bold))))
|
||||||
|
`(syncthing-progress-100 ((,class (:foreground ,green))))
|
||||||
|
`(syncthing-progress-75 ((,class (:foreground ,cyan))))
|
||||||
|
`(syncthing-progress-50 ((,class (:foreground ,yellow))))
|
||||||
|
`(syncthing-progress-25 ((,class (:foreground ,orange))))
|
||||||
|
`(syncthing-progress-0 ((,class (:foreground ,red)))))))
|
||||||
|
|
||||||
(provide-theme 'my-base16-dark)
|
(provide-theme 'my-base16-dark)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user