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
|
# gpg files
|
||||||
elpa/*
|
elpa/*
|
||||||
|
eln-cache/*
|
||||||
|
|
||||||
# swap and undo files
|
# 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?
|
* How to use this config?
|
||||||
This configuration works best on a GNU/Linux Platform, other platforms are untested.
|
This configuration works best on a GNU/Linux Platform, other platforms are untested.
|
||||||
|
|
||||||
** Dependencies
|
** Dependencies
|
||||||
Obviously, a full Emacs distribution needs to be installed.
|
Obviously, a full Emacs distribution needs to be installed.
|
||||||
Other external dependencies is (usually) specified in their configuration.
|
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
|
** Installation
|
||||||
First, download this configuration
|
First, download this configuration
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
mkdir -p $HOME/.config
|
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
|
#+end_src
|
||||||
|
|
||||||
Then, run Emacs.
|
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"))))
|
:foundry "CTDB" :family "FiraCode Nerd Font Mono"))))
|
||||||
'(fixed-pitch ((t (:family "FiraCode Nerd Font Mono"))))
|
'(fixed-pitch ((t (:family "FiraCode Nerd Font Mono"))))
|
||||||
'(fixed-pitch-serif ((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
|
#+end_src
|
||||||
|
|
||||||
** Chinese Font
|
** 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 ()
|
(defun org-config-font-setup ()
|
||||||
"set org mode element fonts"
|
"set org mode element fonts"
|
||||||
(custom-set-faces
|
(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-begin-line ((t (:inherit fixed-pitch))))
|
||||||
;; '(org-block-end-line ((t (:inherit fixed-pitch))))
|
;; '(org-block-end-line ((t (:inherit fixed-pitch))))
|
||||||
'(org-checkbox ((t (:inherit fixed-pitch))))
|
'(org-checkbox ((t (:inherit fixed-pitch :height 0.91))))
|
||||||
'(org-code ((t (:inherit (shadow fixed-pitch)))))
|
'(org-code ((t (:inherit (shadow fixed-pitch) :height 0.91))))
|
||||||
'(org-document-info ((t (:foreground "dark orange"))))
|
'(org-document-info ((t (:foreground "dark orange"))))
|
||||||
'(org-document-info-keyword ((t (:inherit (shadow fixed-pitch)))))
|
'(org-document-info-keyword ((t (:inherit (shadow fixed-pitch) :height 0.91))))
|
||||||
'(org-indent ((t (:inherit (org-hide fixed-pitch)))))
|
'(org-indent ((t (:inherit (org-hide fixed-pitch) :height 0.91))))
|
||||||
'(org-link ((t (:foreground "royal blue" :underline t))))
|
'(org-link ((t (:foreground "royal blue" :underline t))))
|
||||||
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch)))))
|
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.91))))
|
||||||
'(org-property-value ((t (:inherit fixed-pitch))) t)
|
'(org-property-value ((t (:inherit fixed-pitch :height 0.91))) t)
|
||||||
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))
|
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.91))))
|
||||||
'(org-table ((t (:inherit fixed-pitch :foreground "#83a598"))))
|
'(org-table ((t (:inherit fixed-pitch :foreground "#83a598" :height 0.91))))
|
||||||
'(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8))))
|
'(org-tag ((t (:inherit (shadow fixed-pitch) :height 0.91 :weight bold :height 0.8))))
|
||||||
'(org-verbatim ((t (:inherit (shadow fixed-pitch)))))))
|
'(org-verbatim ((t (:inherit (shadow fixed-pitch) :height 0.91))))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Header Font Setup
|
** Header Font Setup
|
||||||
|
|
@ -5,15 +5,12 @@ this file/section configures the UI settings
|
||||||
|
|
||||||
* Toolbar and Scrollbar
|
* Toolbar and Scrollbar
|
||||||
removing this stuff makes emacs looks more cleaner
|
removing this stuff makes emacs looks more cleaner
|
||||||
|
#+begin_src emacs-lisp
|
||||||
#+BEGIN_SRC emacs-lisp
|
(tool-bar-mode -1)
|
||||||
|
(menu-bar-mode -1)
|
||||||
(tool-bar-mode -1)
|
(scroll-bar-mode 1)
|
||||||
(menu-bar-mode 1)
|
#+end_src
|
||||||
(scroll-bar-mode 1)
|
|
||||||
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Maximize
|
* Maximize
|
||||||
Start emacs as a maximized window at start
|
Start emacs as a maximized window at start
|
||||||
|
|
||||||
|
|
@ -137,7 +134,7 @@ sets the tab size 5 spaces
|
||||||
Load theme (that is built-in)
|
Load theme (that is built-in)
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(load-theme 'modus-operandi t)
|
(load-theme 'modus-vivendi t)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Welcome Screen
|
* Welcome Screen
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
(mhtml-mode . ("html-language-server"))
|
(mhtml-mode . ("html-language-server"))
|
||||||
(java-mode . ("jdtls"))
|
(java-mode . ("jdtls"))
|
||||||
(js-mode . ("typescript-language-server"))
|
(js-mode . ("typescript-language-server"))
|
||||||
(python-mode . ("jedi-language-server"))
|
(python-mode . ("pyright"))
|
||||||
(latex-mode . ("texlab")))))
|
(latex-mode . ("texlab")))))
|
||||||
(setq eglot-server-programs (append server-programs eglot-server-programs)))
|
(setq eglot-server-programs (append server-programs eglot-server-programs)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,10 @@ Ido is a autocomplete package for emacs' commands
|
||||||
This config just sets the download directory
|
This config just sets the download directory
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package eww
|
(use-package eww
|
||||||
:custom
|
:custom
|
||||||
(eww-download-directory "~/dls" "location to put downloaded files")
|
(eww-download-directory "~/dls" "location to put downloaded files")
|
||||||
:config
|
(eww-search-prefix "https://lite.duckduckgo.com/lite/?q=" "prefix url to do search"))
|
||||||
(setq eww-download-directory "~/dls"))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Fancy Battery
|
* Fancy Battery
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue