font enhancements, README updates, and other minor fixes
This commit is contained in:
parent
a8c8cac535
commit
efa4fd373e
|
|
@ -4,6 +4,7 @@ personal-sample.el
|
|||
|
||||
# gpg files
|
||||
elpa/*
|
||||
eln-cache/*
|
||||
|
||||
# swap and undo files
|
||||
*~
|
||||
|
|
|
|||
14
README.org
14
README.org
|
|
@ -4,15 +4,27 @@ This is the writer's personal configuration for Emacs.
|
|||
|
||||
* How to use this config?
|
||||
This configuration works best on a GNU/Linux Platform, other platforms are untested.
|
||||
|
||||
** Dependencies
|
||||
Obviously, a full Emacs distribution needs to be installed.
|
||||
Other external dependencies is (usually) specified in their configuration.
|
||||
|
||||
*** Language Servers
|
||||
For Language servers to work, the language servers needs to be installed separately, for example, in Fedora Linux, the required language servers can be installed by running the command below
|
||||
|
||||
#+begin_src sh
|
||||
sudo dnf install clang-tools-extra npm cargo go
|
||||
pip install -U pyright
|
||||
npm i --save -g typescript-language-server typescript vscode-html-languageservice
|
||||
cargo install texlab
|
||||
go install golang.org/x/tools/gopls@latest
|
||||
#+end_src
|
||||
|
||||
** Installation
|
||||
First, download this configuration
|
||||
#+begin_src sh
|
||||
mkdir -p $HOME/.config
|
||||
git clone "https://gitlab.com/telosama/emacs-config.git" $HOME/.config/emacs
|
||||
git clone "https://git.telosama.xyz/iang/emacs-config.git" $HOME/.config/emacs
|
||||
#+end_src
|
||||
|
||||
Then, run Emacs.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ So for this to run, Fira Sans and FiraCode Nerd Font needs to be installed in t
|
|||
:foundry "CTDB" :family "FiraCode Nerd Font Mono"))))
|
||||
'(fixed-pitch ((t (:family "FiraCode Nerd Font Mono"))))
|
||||
'(fixed-pitch-serif ((t (:family "FiraCode Nerd Font Mono"))))
|
||||
'(variable-pitch ((t (:inherit default :family "Fira Sans")))))
|
||||
'(variable-pitch ((t (:inherit default :height 1.1 :family "Cantarell")))))
|
||||
#+end_src
|
||||
|
||||
** Chinese Font
|
||||
|
|
@ -19,21 +19,21 @@ Set different types of fonts for differents elements of Org-mode files, like var
|
|||
(defun org-config-font-setup ()
|
||||
"set org mode element fonts"
|
||||
(custom-set-faces
|
||||
'(org-block ((t (:inherit fixed-pitch))))
|
||||
'(org-block ((t (:inherit fixed-pitch :height 0.91))))
|
||||
;; '(org-block-begin-line ((t (:inherit fixed-pitch))))
|
||||
;; '(org-block-end-line ((t (:inherit fixed-pitch))))
|
||||
'(org-checkbox ((t (:inherit fixed-pitch))))
|
||||
'(org-code ((t (:inherit (shadow fixed-pitch)))))
|
||||
'(org-checkbox ((t (:inherit fixed-pitch :height 0.91))))
|
||||
'(org-code ((t (:inherit (shadow fixed-pitch) :height 0.91))))
|
||||
'(org-document-info ((t (:foreground "dark orange"))))
|
||||
'(org-document-info-keyword ((t (:inherit (shadow fixed-pitch)))))
|
||||
'(org-indent ((t (:inherit (org-hide fixed-pitch)))))
|
||||
'(org-document-info-keyword ((t (:inherit (shadow fixed-pitch) :height 0.91))))
|
||||
'(org-indent ((t (:inherit (org-hide fixed-pitch) :height 0.91))))
|
||||
'(org-link ((t (:foreground "royal blue" :underline t))))
|
||||
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch)))))
|
||||
'(org-property-value ((t (:inherit fixed-pitch))) t)
|
||||
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))
|
||||
'(org-table ((t (:inherit fixed-pitch :foreground "#83a598"))))
|
||||
'(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8))))
|
||||
'(org-verbatim ((t (:inherit (shadow fixed-pitch)))))))
|
||||
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.91))))
|
||||
'(org-property-value ((t (:inherit fixed-pitch :height 0.91))) t)
|
||||
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.91))))
|
||||
'(org-table ((t (:inherit fixed-pitch :foreground "#83a598" :height 0.91))))
|
||||
'(org-tag ((t (:inherit (shadow fixed-pitch) :height 0.91 :weight bold :height 0.8))))
|
||||
'(org-verbatim ((t (:inherit (shadow fixed-pitch) :height 0.91))))))
|
||||
#+end_src
|
||||
|
||||
** Header Font Setup
|
||||
|
|
@ -5,14 +5,11 @@ this file/section configures the UI settings
|
|||
|
||||
* Toolbar and Scrollbar
|
||||
removing this stuff makes emacs looks more cleaner
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(tool-bar-mode -1)
|
||||
(menu-bar-mode 1)
|
||||
(menu-bar-mode -1)
|
||||
(scroll-bar-mode 1)
|
||||
|
||||
#+END_SRC
|
||||
#+end_src
|
||||
|
||||
* Maximize
|
||||
Start emacs as a maximized window at start
|
||||
|
|
@ -137,7 +134,7 @@ sets the tab size 5 spaces
|
|||
Load theme (that is built-in)
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(load-theme 'modus-operandi t)
|
||||
(load-theme 'modus-vivendi t)
|
||||
#+end_src
|
||||
|
||||
* Welcome Screen
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
(mhtml-mode . ("html-language-server"))
|
||||
(java-mode . ("jdtls"))
|
||||
(js-mode . ("typescript-language-server"))
|
||||
(python-mode . ("jedi-language-server"))
|
||||
(python-mode . ("pyright"))
|
||||
(latex-mode . ("texlab")))))
|
||||
(setq eglot-server-programs (append server-programs eglot-server-programs)))
|
||||
#+end_src
|
||||
|
|
|
|||
|
|
@ -23,8 +23,7 @@ This config just sets the download directory
|
|||
(use-package eww
|
||||
:custom
|
||||
(eww-download-directory "~/dls" "location to put downloaded files")
|
||||
:config
|
||||
(setq eww-download-directory "~/dls"))
|
||||
(eww-search-prefix "https://lite.duckduckgo.com/lite/?q=" "prefix url to do search"))
|
||||
#+end_src
|
||||
|
||||
* Fancy Battery
|
||||
|
|
|
|||
Loading…
Reference in New Issue