Minor edits

This commit is contained in:
Derek Taylor
2023-08-15 20:35:31 -05:00
parent 4470847e78
commit 214f6ea206
2 changed files with 11 additions and 13 deletions

View File

@@ -410,8 +410,7 @@ Emacs has built-in programming language modes for Lisp, Scheme, DSSSL, Ada, ASM,
#+end_src #+end_src
* MODELINE * MODELINE
The modeline is the bottom status bar that appears in Emacs windows. For more information on what is available to configure in the Doom modeline, check out: The modeline is the bottom status bar that appears in Emacs windows. While you can create your own custom modeline, why go to the trouble when Doom Emacs already has a nice modeline package available. For more information on what is available to configure in the Doom modeline, check out: [[https://github.com/seagle0128/doom-modeline][Doom Modeline]]
https://github.com/seagle0128/doom-modeline
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package doom-modeline (use-package doom-modeline
@@ -426,7 +425,7 @@ https://github.com/seagle0128/doom-modeline
#+end_src #+end_src
* NEOTREE * NEOTREE
Neotree is a file tree viewer. When you open neotree, it jumps to the current file thanks to neo-smart-open. The neo-window-fixed-size setting makes the neotree width be adjustable. NeoTree provides following themes: classic, ascii, arrow, icons, and nerd. Theme can be configed by setting "two" themes for neo-theme: one for the GUI and one for the terminal. I like to use 'SPC t' for 'toggle' keybindings, so I have used 'SPC t n' for toggle-neotree. Neotree is a file tree viewer. When you open neotree, it jumps to the current file thanks to neo-smart-open. The neo-window-fixed-size setting makes the neotree width be adjustable. NeoTree provides following themes: classic, ascii, arrow, icons, and nerd. Theme can be config'd by setting "two" themes for neo-theme: one for the GUI and one for the terminal. I like to use 'SPC t' for 'toggle' keybindings, so I have used 'SPC t n' for toggle-neotree.
| COMMAND | DESCRIPTION | KEYBINDING | | COMMAND | DESCRIPTION | KEYBINDING |
|----------------+---------------------------+------------| |----------------+---------------------------+------------|
@@ -615,7 +614,7 @@ Vterm is a terminal emulator within Emacs. The 'shell-file-name' setting sets t
#+end_src #+end_src
* THEME * THEME
The first line below designates the directory where will place all of our custom-made themes, which I have created only one (dtmacs) You can create your own Emacs themes with the help of the [[https://emacsfodder.github.io/emacs-theme-editor/][Emacs Theme Editor]]. I also am installing =doom-themes= because it contains a huge collection of themes. M-x load-theme will list all of the themes available. The first line below designates the directory where will place all of our custom-made themes, which I have created only one (dtmacs). You can create your own Emacs themes with the help of the [[https://emacsfodder.github.io/emacs-theme-editor/][Emacs Theme Editor]]. I am also installing =doom-themes= because it contains a huge collection of themes. M-x load-theme will list all of the themes available.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-to-list 'custom-theme-load-path "~/.config/emacs/themes/") (add-to-list 'custom-theme-load-path "~/.config/emacs/themes/")

View File

@@ -447,19 +447,18 @@ def init_widgets_list():
] ]
return widgets_list return widgets_list
# I use 3 monitors which means that I need 3 bars, but some widgets (such as the systray) # Monitor 1 will display ALL widgets in widgets_list. It is important that this
# can only have one instance, otherwise it will crash. So I define the follow two lists. # is the only monitor that displays all widgets because the systray widget will
# The first one creates a bar with every widget EXCEPT index 15 and 16 (systray and spacer). # crash if you try to run multiple instances of it.
# The second one creates a bar with all widgets.
def init_widgets_screen1(): def init_widgets_screen1():
widgets_screen1 = init_widgets_list() widgets_screen1 = init_widgets_list()
del widgets_screen1[22:23] # Removes widgets 15 and 16 for bars on Monitors 1 + 3 return widgets_screen1
return widgets_screen1
# All other monitors' bars will display everything but widgets 22 (systray) and 23 (spacer).
def init_widgets_screen2(): def init_widgets_screen2():
widgets_screen2 = init_widgets_list() widgets_screen2 = init_widgets_list()
return widgets_screen2 # Monitor 2 will display ALL widgets in widgets_list del widgets_screen2[22:23]
return widgets_screen2
# For adding transparency to your bar, add (background="#00000000") to the "Screen" line(s) # For adding transparency to your bar, add (background="#00000000") to the "Screen" line(s)
# For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)), # For ex: Screen(top=bar.Bar(widgets=init_widgets_screen2(), background="#00000000", size=24)),
@@ -467,7 +466,7 @@ def init_widgets_screen2():
def init_screens(): def init_screens():
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26)), return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26)), Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26)),
Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=26))] Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=26))]
if __name__ in ["config", "__main__"]: if __name__ in ["config", "__main__"]:
screens = init_screens() screens = init_screens()