diff --git a/README.md b/README.md index 4265fc57..99ef7793 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ - + # M-EMACS - + # About @@ -24,81 +24,81 @@ This README originated from init.org that is generated using `M-x org-gfm-export # Table of Contents :TOC_2_ORG: -- [M-EMACS](#org1e3292b) -- [About](#orga5b6f66) -- [Installation](#org5371257) -- [Modification](#orga09a41a) -- [Startup](#org010256c) - - [Lexical-binding](#orgaa00cda) - - [Disable Unnecessary Interface](#org519d53a) - - [Optimization](#orgfc0ee99) - - [Define Constants](#org4824a07) -- [Package Management](#org04d883e) - - [Melpa Packages](#orgc61c677) - - [Configure Package Management](#orgc7f7101) - - [Use-Package Wrapper](#org3faa5bb) - - [Auto Package Update](#org963bb54) -- [Global Functionalities](#orgbaf9c61) - - [Owner Information](#orgd06aa04) - - [Bindings](#orgb086299) - - [Dired](#org8f337e1) - - [Search](#org4008b5d) - - [Avy](#orgc523197) - - [Ivy](#org43c71e5) - - [Winner](#org1742888) - - [Which Key](#org9271593) - - [Popup Kill Ring](#org118922f) - - [Undo Tree](#org5ce82ee) - - [Shell Here](#org3d741cd) - - [Discover My Major](#org5dd5350) - - [Configs](#org6a9f77d) - - [More Functions](#orgb2226a1) -- [User Interface Enhancements](#orgf587aa5) - - [Title Bar](#org44c0cb4) - - [All The Icons](#org3924931) - - [Doom Theme](#orgdcff76c) - - [Doom Modeline](#orgf953df9) - - [Dashboard](#org658e1a3) - - [Fonts](#orga2e2e5e) - - [Zone](#org9b11a07) - - [Diminish](#org8ff3952) - - [Dimmer](#org6f25e06) - - [Smooth Scroll](#org8bc57a0) - - [Pretty Symbols](#orgb50d337) - - [UI Configs](#org6cec33d) -- [General Programming](#org4309b48) - - [Magit](#org21901c8) - - [Projectile](#orgf4136c7) - - [Treemacs](#orge40d38c) - - [Company](#orgf317e15) - - [Flycheck](#orgd67b88e) - - [Dumb Jump](#orgb189c69) - - [Line Numbers](#org63f1f5e) - - [Parenthesis Pairing](#org1d14b58) - - [Format All](#orgbf18bad) - - [Highlight Indent Guides](#org9fab397) - - [Header](#orgb3dc6e7) - - [LSP](#org9651815) -- [Programming](#org2b16315) - - [Emacs Lisp](#org4a758de) - - [Java](#org2227d93) - - [C/C++](#orgf669057) - - [Python](#org3bd49e8) - - [Arduino](#org329ab09) -- [Web Development](#orga3148e0) - - [Web Mode](#orgbd707e4) - - [Emmet](#org132e322) - - [JavaScript/TypeScript](#orgdb953f9) -- [Miscellaneous](#orgabaa549) - - [Org](#orgd852baa) - - [EWW](#org8fcef9b) - - [Tetris](#org30d9e9c) - - [Speed Type](#orgd735af3) - - [2048 Game](#org8b8768c) -- [Credits](#orgbaa5fe3) - - - +- [M-EMACS](#org248f171) +- [About](#org0993dd3) +- [Installation](#org30f121b) +- [Modification](#org1768c14) +- [Startup](#org340a390) + - [Lexical-binding](#orgac1a1a8) + - [Disable Unnecessary Interface](#org036e028) + - [Optimization](#orgb633e05) + - [Define Constants](#org2acda44) +- [Package Management](#org1d15812) + - [Melpa Packages](#org4db97df) + - [Configure Package Management](#orge17bfd0) + - [Use-Package Wrapper](#org8bd7a23) + - [Auto Package Update](#org4e8b515) +- [Global Functionalities](#org5e56372) + - [Owner Information](#org490ff33) + - [Bindings](#orgd23c90d) + - [Dired](#orgf0fbdba) + - [Search](#org8a200af) + - [Avy](#org611426b) + - [Ivy](#org8420307) + - [Winner](#org399e582) + - [Which Key](#org06c1180) + - [Popup Kill Ring](#org112230e) + - [Undo Tree](#org03d42f4) + - [Shell Here](#orgad03e2e) + - [Discover My Major](#orgdc6f302) + - [Configs](#org16a1695) + - [More Functions](#org4026413) +- [User Interface Enhancements](#orga9f8cd2) + - [Title Bar](#org913ac07) + - [All The Icons](#org16bb8f1) + - [Doom Theme](#org9a200da) + - [Doom Modeline](#org67ef386) + - [Dashboard](#org0e878e4) + - [Fonts](#orgf797207) + - [Zone](#org3eb85a4) + - [Diminish](#org6c57165) + - [Dimmer](#org912d389) + - [Smooth Scroll](#org3227206) + - [Pretty Symbols](#org2da084c) + - [UI Configs](#org624152a) +- [General Programming](#org400cc28) + - [Magit](#org5bf5668) + - [Projectile](#org6d83b42) + - [Treemacs](#org5e6b606) + - [Company](#org94a7d82) + - [Flycheck](#org1a03e67) + - [Dumb Jump](#org8410acd) + - [Line Numbers](#org87f5321) + - [Parenthesis Pairing](#org7fb929a) + - [Format All](#orgf68072d) + - [Highlight Indent Guides](#orgf5cffc4) + - [Header](#org0261818) + - [LSP](#orgc616f89) +- [Programming](#org4c77ca5) + - [Emacs Lisp](#orgf97e289) + - [Java](#org89f8f7c) + - [C/C++](#org7f4ec08) + - [Python](#org91b43da) + - [Arduino](#org7214011) +- [Web Development](#org0a9200e) + - [Web Mode](#org94d6186) + - [Emmet](#org57180bd) + - [JavaScript/TypeScript](#org2dea221) +- [Miscellaneous](#orgde2803a) + - [Org](#org3e88eaa) + - [EWW](#org3a8d87b) + - [Tetris](#org04df7ec) + - [Speed Type](#orga2cd27f) + - [2048 Game](#org86e3795) +- [Credits](#orga388aed) + + + # Installation @@ -117,7 +117,7 @@ This README originated from init.org that is generated using `M-x org-gfm-export 6. Restart Emacs. - + # Modification @@ -133,12 +133,12 @@ You have the permission to use, modify, distribute however you want and free of 6. Call `M-x org-gfm-export-to-markdown` to update this README. - + # Startup - + ## Lexical-binding @@ -151,7 +151,7 @@ Use lexical-binding. [Why?](https://nullprogram.com/blog/2016/12/22/) ``` - + ## Disable Unnecessary Interface @@ -165,7 +165,7 @@ This need to be in the beginning of initialization to smooth the experience. ``` - + ## Optimization @@ -218,7 +218,7 @@ Load all elisp files in `elisp/` and `site-elisp/` to reduce startup time. ``` - + ## Define Constants @@ -238,12 +238,12 @@ Load all elisp files in `elisp/` and `site-elisp/` to reduce startup time. ``` - + # Package Management - + ## Melpa Packages @@ -260,7 +260,7 @@ Load all elisp files in `elisp/` and `site-elisp/` to reduce startup time. ``` - + ## Configure Package Management @@ -280,7 +280,7 @@ Load all elisp files in `elisp/` and `site-elisp/` to reduce startup time. ``` - + ## Use-Package Wrapper @@ -333,7 +333,7 @@ The `use-package` wrapper. ``` - + ## Auto Package Update @@ -350,12 +350,12 @@ The `use-package` wrapper. ``` - + # Global Functionalities - + ## Owner Information @@ -367,7 +367,7 @@ The `use-package` wrapper. ``` - + ## Bindings @@ -387,7 +387,7 @@ The `use-package` wrapper. ``` - + ## Dired @@ -478,7 +478,7 @@ Set autosave and backup directory. ``` - + ## Search @@ -497,7 +497,7 @@ Set autosave and backup directory. ``` - + ## Avy @@ -515,7 +515,7 @@ Set autosave and backup directory. ``` - + ## Ivy @@ -571,7 +571,7 @@ Set autosave and backup directory. ``` - + ## Winner @@ -593,7 +593,7 @@ Winner mode restores old window layout. ``` - + ## Which Key @@ -610,7 +610,7 @@ Winner mode restores old window layout. ``` - + ## Popup Kill Ring @@ -622,7 +622,7 @@ Winner mode restores old window layout. ``` - + ## Undo Tree @@ -636,7 +636,7 @@ Winner mode restores old window layout. ``` - + ## Shell Here @@ -648,7 +648,7 @@ Winner mode restores old window layout. ``` - + ## Discover My Major @@ -660,7 +660,7 @@ Winner mode restores old window layout. ``` - + ## Configs @@ -750,7 +750,7 @@ Garbage collect when Emacs is not in focus. ``` - + ## More Functions @@ -883,12 +883,12 @@ BEGIN and END are regexps which define the line range to use." ``` - + # User Interface Enhancements - + ## Title Bar @@ -897,7 +897,7 @@ BEGIN and END are regexps which define the line range to use." ``` - + ## All The Icons @@ -938,7 +938,7 @@ BEGIN and END are regexps which define the line range to use." ``` - + ## Doom Theme @@ -955,7 +955,7 @@ BEGIN and END are regexps which define the line range to use." ``` - + ## Doom Modeline @@ -975,7 +975,7 @@ BEGIN and END are regexps which define the line range to use." ``` - + ## Dashboard @@ -1045,7 +1045,7 @@ Use either `KEC_Dark_BK.png` or `KEC_Light_BK.png` depends on the backgrond them ``` - + ## Fonts @@ -1085,7 +1085,7 @@ Change Font Function. ``` - + ## Zone @@ -1109,7 +1109,7 @@ Change Font Function. ``` - + ## Diminish @@ -1120,7 +1120,7 @@ Change Font Function. ``` - + ## Dimmer @@ -1135,7 +1135,7 @@ Change Font Function. ``` - + ## Smooth Scroll @@ -1154,7 +1154,7 @@ Smoothens Scrolling. ``` - + ## Pretty Symbols @@ -1175,7 +1175,7 @@ Pretty the Symbols. ``` - + ## UI Configs @@ -1199,12 +1199,12 @@ Change yes or no prompts to y or n. ``` - + # General Programming - + ## Magit @@ -1216,13 +1216,13 @@ Change yes or no prompts to y or n. ``` - + ## Projectile [Projectile](https://github.com/bbatsov/projectile), a Project Interaction Library for Emacs. -**Prerequisite**: Install [Gow](https://github.com/bmatzelle/gow) before proceding and make sure it is in the `PATH`. Gow is a lightweight installer that installs useful open source UNIX applications compiled as native win32 binaries. Specifically, `tr` is needed for Projectile alien indexing. +**Prerequisite**: If using Windows OS, Install [Gow](https://github.com/bmatzelle/gow) before proceding and make sure it is in the `PATH`. Gow is a lightweight installer that installs useful open source UNIX applications compiled as native win32 binaries. Specifically, `tr` is needed for Projectile alien indexing. ```emacs-lisp (def-package projectile @@ -1240,7 +1240,7 @@ Change yes or no prompts to y or n. ``` - + ## Treemacs @@ -1324,7 +1324,7 @@ Change yes or no prompts to y or n. ``` - + ## Company @@ -1350,7 +1350,7 @@ Change yes or no prompts to y or n. ``` - + ## Flycheck @@ -1367,7 +1367,7 @@ Change yes or no prompts to y or n. ``` - + ## Dumb Jump @@ -1384,7 +1384,7 @@ Change yes or no prompts to y or n. ``` - + ## Line Numbers @@ -1403,7 +1403,7 @@ Display line numbers, and column numbers in modeline. ``` - + ## Parenthesis Pairing @@ -1480,7 +1480,7 @@ Match and automatically pair parenthesis. ``` - + ## Format All @@ -1495,7 +1495,7 @@ Match and automatically pair parenthesis. ``` - + ## Highlight Indent Guides @@ -1505,16 +1505,16 @@ Match and automatically pair parenthesis. (def-package highlight-indent-guides :diminish :defer t + :hook ((prog-mode web-mode) . highlight-indent-guides-mode) :config (setq highlight-indent-guides-method 'character) (setq highlight-indent-guides-responsive 'top) (setq highlight-indent-guides-delay 0) - (setq highlight-indent-guides-auto-character-face-perc 20) - (add-hook 'prog-mode-hook 'highlight-indent-guides-mode)) + (setq highlight-indent-guides-auto-character-face-perc 7)) ``` - + ## Header @@ -1532,7 +1532,7 @@ Match and automatically pair parenthesis. ``` - + ## LSP @@ -1618,12 +1618,12 @@ Match and automatically pair parenthesis. ``` - + # Programming - + ## Emacs Lisp @@ -1637,7 +1637,7 @@ Eval-buffer for ELisp Code. ``` - + ## Java @@ -1656,7 +1656,7 @@ Eval-buffer for ELisp Code. ``` - + ## C/C++ @@ -1687,7 +1687,7 @@ CC Mode, a mode for editing files containing C, C++, Objective-C, Java, CORBA ID Rest of the features will be provided by [LSP Mode](https://github.com/emacs-lsp/lsp-mode). - + ## Python @@ -1724,7 +1724,7 @@ Now, put `~/.emacs.d\python-language-server\output\bin\Release\win10-x64\publish ``` - + ## Arduino @@ -1757,20 +1757,20 @@ Now, put `~/.emacs.d\python-language-server\output\bin\Release\win10-x64\publish ``` - + # Web Development -**Prerequisite**: Ensure NodeJS is installed and put in path. Execute following commands +**Prerequisite**: Ensure NodeJS is installed and put in path. Execute following commands to enable LSP for JavaScript/TypeScript/HTML: ```text -npm install -g vscode-html-languageserver-bin npm i -g typescript-language-server npm i -g typescript +npm install -g vscode-html-languageserver-bin ``` - + ## Web Mode @@ -1784,7 +1784,7 @@ npm i -g typescript ``` - + ## Emmet @@ -1798,7 +1798,7 @@ npm i -g typescript ``` - + ## JavaScript/TypeScript @@ -1851,12 +1851,12 @@ Tip: enter `M-.` to jump to definition. ``` - + # Miscellaneous - + ## Org @@ -1911,7 +1911,7 @@ Tip: enter `M-.` to jump to definition. ``` - + ## EWW @@ -1947,7 +1947,7 @@ In Eww, hit & to browse this url system browser ``` - + ## Tetris @@ -1966,7 +1966,7 @@ Although [Tetris](https://www.emacswiki.org/emacs/TetrisMode) is part of Emacs, ``` - + ## Speed Type @@ -1978,7 +1978,7 @@ Although [Tetris](https://www.emacswiki.org/emacs/TetrisMode) is part of Emacs, ``` - + ## 2048 Game @@ -1990,7 +1990,7 @@ Although [Tetris](https://www.emacswiki.org/emacs/TetrisMode) is part of Emacs, ``` - + # Credits diff --git a/amx-items b/amx-items index 85dcbbdd..e0f121ce 100644 --- a/amx-items +++ b/amx-items @@ -1,13 +1,13 @@ ;; ----- amx-history ----- ( - display-line-numbers-mode + package-reinstall + package-refresh-contents org-gfm-export-to-markdown + highlight-indent-guides-mode + display-line-numbers-mode dumb-jump-go-prefer-external-other-window js2-mode - highlight-indent-guides-mode - line-number-mode - linum-mode ) ;; ----- amx-data ----- @@ -19,7 +19,7 @@ (org-mode . 2) (emacs-lisp-mode . 4) (ace-jump-mode . 2) - (package-refresh-contents . 9) + (package-refresh-contents . 10) (flycheck-mode . 6) (flycheck-copy-errors-as-kill . 1) (toggle-frame-fullscreen . 5) @@ -46,7 +46,7 @@ (web-mode . 7) (smartparens-mode . 3) (display-time-mode . 1) - (package-reinstall . 6) + (package-reinstall . 7) (magit-version . 2) (speed-type-text . 3) (revert-buffer . 5) @@ -160,7 +160,7 @@ (lsp-shutdown-workspace . 2) (global-flycheck-mode . 2) (re-search-forward . 1) - (org-gfm-export-to-markdown . 38) + (org-gfm-export-to-markdown . 41) (rename-file-and-buffer . 9) (org-export-stack . 1) (toc-org-insert-toc . 2) @@ -170,7 +170,7 @@ (lsp-describe-session . 1) (org-cycle . 1) (column-number-mode . 6) - (highlight-indent-guides-mode . 1) + (highlight-indent-guides-mode . 2) (js2-mode . 1) (dumb-jump-go-prefer-external-other-window . 1) ) diff --git a/elisp/init-highlight-indent.el b/elisp/init-highlight-indent.el index e7bec7e6..0d2a938f 100644 --- a/elisp/init-highlight-indent.el +++ b/elisp/init-highlight-indent.el @@ -47,12 +47,12 @@ (def-package highlight-indent-guides :diminish :defer t + :hook ((prog-mode web-mode) . highlight-indent-guides-mode) :config (setq highlight-indent-guides-method 'character) (setq highlight-indent-guides-responsive 'top) (setq highlight-indent-guides-delay 0) - (setq highlight-indent-guides-auto-character-face-perc 20) - (add-hook 'prog-mode-hook 'highlight-indent-guides-mode)) + (setq highlight-indent-guides-auto-character-face-perc 7)) ;; -HighLightIndentPac (provide 'init-highlight-indent) diff --git a/init.org b/init.org index 6a6cba4e..e22a2ec3 100644 --- a/init.org +++ b/init.org @@ -294,7 +294,7 @@ ** Projectile [[https://github.com/bbatsov/projectile][Projectile]], a Project Interaction Library for Emacs. - *Prerequisite*: Install [[https://github.com/bmatzelle/gow][Gow]] before proceding and make sure it is in the =PATH=. Gow is a lightweight installer that installs useful open source UNIX applications compiled as native win32 binaries. Specifically, =tr= is needed for Projectile alien indexing. + *Prerequisite*: If using Windows OS, Install [[https://github.com/bmatzelle/gow][Gow]] before proceding and make sure it is in the =PATH=. Gow is a lightweight installer that installs useful open source UNIX applications compiled as native win32 binaries. Specifically, =tr= is needed for Projectile alien indexing. #+INCLUDE: "~/.emacs.d/elisp/init-projectile.el" src emacs-lisp :range-begin "ProjPac" :range-end "-ProjPac" :lines "49-61" ** Treemacs [[https://github.com/Alexander-Miller/treemacs][Treemacs]], a tree layout file explorer for Emacs. @@ -396,11 +396,11 @@ [[https://github.com/yuutayamada/company-arduino][Company Arduino]], a set of configuration to let you auto-completion by using irony-mode, company-irony and company-c-headers on arduino-mode. #+INCLUDE: "~/.emacs.d/elisp/init-arduino.el" src emacs-lisp :range-begin "CompanyArduinoPac" :range-end "-CompanyArduinoPac" :lines "56-62" * Web Development - *Prerequisite*: Ensure NodeJS is installed and put in path. Execute following commands + *Prerequisite*: Ensure NodeJS is installed and put in path. Execute following commands to enable LSP for JavaScript/TypeScript/HTML: #+BEGIN_SRC text - npm install -g vscode-html-languageserver-bin npm i -g typescript-language-server npm i -g typescript + npm install -g vscode-html-languageserver-bin #+END_SRC ** Web Mode [[https://github.com/fxbois/web-mode][Web mode]], a major mode for editing web templates.