making things work better on sway
This commit is contained in:
parent
c0046dabc4
commit
ee2b18f8c6
19
README.org
19
README.org
|
@ -77,7 +77,7 @@ Let's start by making some basic ui changes like turning off the scrollbar, tool
|
|||
In order to have this config work on both my desktop with regular joe-schmoe monitors and my laptop with new-hotness HiDPI monitor, I will set the font size if my system is the laptop to much higher.
|
||||
#+begin_src emacs-lisp
|
||||
(if (string-equal (system-name) "syl")
|
||||
(defvar chris/default-font-size 240)
|
||||
(defvar chris/default-font-size 120)
|
||||
(defvar chris/default-font-size 120))
|
||||
|
||||
(defun chris/set-font-faces ()
|
||||
|
@ -88,7 +88,8 @@ In order to have this config work on both my desktop with regular joe-schmoe mon
|
|||
(set-face-attribute 'fixed-pitch nil :font "VictorMono Nerd Font"
|
||||
:height chris/default-font-size)
|
||||
(set-face-attribute 'variable-pitch nil :font "Cantarell"
|
||||
:height (+ chris/default-font-size (/ chris/default-font-size 8)) :weight 'regular))
|
||||
:height (+ chris/default-font-size (/ chris/default-font-size 8))
|
||||
:weight 'regular))
|
||||
|
||||
(defun chris/set-transparency ()
|
||||
"Set the frame to be transparent on Wayland compositors"
|
||||
|
@ -157,6 +158,7 @@ I will also add my personal scripts to emacs' PATH
|
|||
#+end_src
|
||||
|
||||
** Let's bootstrap straight.el
|
||||
To use straight we need to bootstrap it. This code is pulled right from Straight's github repo.
|
||||
#+begin_src emacs-lisp
|
||||
(setq straight-fix-org t)
|
||||
(setq straight-check-for-modifications '(check-on-save find-when-checking))
|
||||
|
@ -184,10 +186,12 @@ I will also add my personal scripts to emacs' PATH
|
|||
:commands command-log-mode)
|
||||
#+end_src
|
||||
|
||||
All the icons is super pretty and needed for doom-modeline.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package all-the-icons)
|
||||
#+end_src
|
||||
|
||||
Probably the prettiest and best modeline I've found.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package doom-modeline
|
||||
:ensure t
|
||||
|
@ -203,12 +207,14 @@ I will also add my personal scripts to emacs' PATH
|
|||
(setq doom-modeline-icon t))))))
|
||||
#+end_src
|
||||
|
||||
Again, doom is pretty and I have fallen in love with the snazzy theme and use it about anywhere I can.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package doom-themes
|
||||
:ensure t
|
||||
:init (load-theme 'doom-snazzy t))
|
||||
#+end_src
|
||||
|
||||
Let's make parens and other delimiters easier to tell apart by making nested ones different colors.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package rainbow-delimiters
|
||||
:hook (prog-mode . rainbow-delimiters-mode))
|
||||
|
@ -750,6 +756,13 @@ I make some apps in Qt 5 so QML is a needed language although the support in Ema
|
|||
:after qml-mode)
|
||||
#+end_src
|
||||
|
||||
*** CSV
|
||||
Sometimes I need to edit CSV files quickly
|
||||
#+begin_src emacs-lisp
|
||||
(use-package csv-mode
|
||||
:mode ("\\.csv\\'" . csv-mode))
|
||||
#+end_src
|
||||
|
||||
** File Management
|
||||
*** Dired
|
||||
I'm making a small function in here to open files in the appropriate program using XDG defaults. This is like opening odt files in Libreoffice or mp4 files in MPV.
|
||||
|
@ -1799,7 +1812,7 @@ I use transmission on a server to manage my torrents
|
|||
transmission-files-mode
|
||||
transmission-info-mode
|
||||
transmission-peers-mode))
|
||||
(setq transmission-host "192.168.1.7"
|
||||
(setq transmission-host "192.168.1.2"
|
||||
transmission-rpc-path "/transmission/rpc"
|
||||
transmission-refresh-modes '(transmission-mode
|
||||
transmission-files-mode
|
||||
|
|
63
init.el
63
init.el
|
@ -19,7 +19,7 @@
|
|||
(column-number-mode +1)
|
||||
|
||||
(if (string-equal (system-name) "syl")
|
||||
(defvar chris/default-font-size 240)
|
||||
(defvar chris/default-font-size 120)
|
||||
(defvar chris/default-font-size 120))
|
||||
|
||||
(defun chris/set-font-faces ()
|
||||
|
@ -30,7 +30,8 @@
|
|||
(set-face-attribute 'fixed-pitch nil :font "VictorMono Nerd Font"
|
||||
:height chris/default-font-size)
|
||||
(set-face-attribute 'variable-pitch nil :font "Cantarell"
|
||||
:height (+ chris/default-font-size (/ chris/default-font-size 8)) :weight 'regular))
|
||||
:height (+ chris/default-font-size (/ chris/default-font-size 8))
|
||||
:weight 'regular))
|
||||
|
||||
(defun chris/set-transparency ()
|
||||
"Set the frame to be transparent on Wayland compositors"
|
||||
|
@ -437,6 +438,9 @@ vertically."
|
|||
(use-package qt-pro-mode
|
||||
:after qml-mode)
|
||||
|
||||
(use-package csv-mode
|
||||
:mode ("\\.csv\\'" . csv-mode))
|
||||
|
||||
(use-package dired
|
||||
:ensure nil
|
||||
:straight nil
|
||||
|
@ -1367,7 +1371,7 @@ interfere with the default `bongo-playlist-buffer'."
|
|||
transmission-files-mode
|
||||
transmission-info-mode
|
||||
transmission-peers-mode))
|
||||
(setq transmission-host "192.168.1.7"
|
||||
(setq transmission-host "192.168.1.2"
|
||||
transmission-rpc-path "/transmission/rpc"
|
||||
transmission-refresh-modes '(transmission-mode
|
||||
transmission-files-mode
|
||||
|
@ -1419,3 +1423,56 @@ interfere with the default `bongo-playlist-buffer'."
|
|||
gcmh-verbose t))
|
||||
|
||||
(setq warning-suppress-types '((comp)))
|
||||
(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.
|
||||
'(ansi-color-faces-vector
|
||||
[default default default italic underline success warning error])
|
||||
'(awesome-tray-mode-line-active-color "#0031a9")
|
||||
'(awesome-tray-mode-line-inactive-color "#d7d7d7")
|
||||
'(custom-safe-themes
|
||||
'("7b3d184d2955990e4df1162aeff6bfb4e1c3e822368f0359e15e2974235d9fa8" "ca70827910547eb99368db50ac94556bbd194b7e8311cfbdbdcad8da65e803be" "f4876796ef5ee9c82b125a096a590c9891cec31320569fc6ff602ff99ed73dca" "f2927d7d87e8207fa9a0a003c0f222d45c948845de162c885bf6ad2a255babfd" "fd22c8c803f2dac71db953b93df6560b6b058cb931ac12f688def67f08c10640" "c086fe46209696a2d01752c0216ed72fd6faeabaaaa40db9fc1518abebaf700d" "2c49d6ac8c0bf19648c9d2eabec9b246d46cb94d83713eaae4f26b49a8183fc4" "990e24b406787568c592db2b853aa65ecc2dcd08146c0d22293259d400174e37" "79278310dd6cacf2d2f491063c4ab8b129fee2a498e4c25912ddaa6c3c5b621e" "93ed23c504b202cf96ee591138b0012c295338f38046a1f3c14522d4a64d7308" "e3c64e88fec56f86b49dcdc5a831e96782baf14b09397d4057156b17062a8848" default))
|
||||
'(exwm-floating-border-color "#888888")
|
||||
'(flymake-error-bitmap '(flymake-double-exclamation-mark modus-themes-fringe-red))
|
||||
'(flymake-note-bitmap '(exclamation-mark modus-themes-fringe-cyan))
|
||||
'(flymake-warning-bitmap '(exclamation-mark modus-themes-fringe-yellow))
|
||||
'(highlight-tail-colors '(("#aecf90" . 0) ("#c0efff" . 20)))
|
||||
'(hl-sexp-background-color "#efebe9")
|
||||
'(hl-todo-keyword-faces
|
||||
'(("HOLD" . "#70480f")
|
||||
("TODO" . "#721045")
|
||||
("NEXT" . "#5317ac")
|
||||
("THEM" . "#8f0075")
|
||||
("PROG" . "#00538b")
|
||||
("OKAY" . "#30517f")
|
||||
("DONT" . "#315b00")
|
||||
("FAIL" . "#a60000")
|
||||
("BUG" . "#a60000")
|
||||
("DONE" . "#005e00")
|
||||
("NOTE" . "#863927")
|
||||
("KLUDGE" . "#813e00")
|
||||
("HACK" . "#813e00")
|
||||
("TEMP" . "#5f0000")
|
||||
("FIXME" . "#a0132f")
|
||||
("XXX+" . "#972500")
|
||||
("REVIEW" . "#005a5f")
|
||||
("DEPRECATED" . "#201f55")))
|
||||
'(ibuffer-deletion-face 'modus-themes-mark-del)
|
||||
'(ibuffer-filter-group-name-face 'modus-themes-mark-symbol)
|
||||
'(ibuffer-marked-face 'modus-themes-mark-sel)
|
||||
'(ibuffer-title-face 'modus-themes-pseudo-header)
|
||||
'(line-number-mode nil)
|
||||
'(org-src-block-faces 'nil)
|
||||
'(vc-annotate-background-mode nil)
|
||||
'(xterm-color-names
|
||||
["black" "#a60000" "#005e00" "#813e00" "#0031a9" "#721045" "#00538b" "gray65"])
|
||||
'(xterm-color-names-bright
|
||||
["gray35" "#972500" "#315b00" "#70480f" "#2544bb" "#8f0075" "#30517f" "white"]))
|
||||
(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.
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue