making things work better on sway
This commit is contained in:
parent
c0046dabc4
commit
ee2b18f8c6
2 changed files with 76 additions and 6 deletions
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue