-
-
Save zhangchunsheng-science/1aa241e8b8312d983d5fc204b73a1da4 to your computer and use it in GitHub Desktop.
Revisions
-
huytd revised this gist
Aug 17, 2018 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -290,11 +290,11 @@ :init (add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))) ;; LSP for JavaScript and TypeScript (use-package lsp-javascript-typescript :ensure t :init (add-to-list 'js-mode-hook #'lsp-javascript-typescript-enable) (add-to-list 'typescript-mode-hook #'lsp-javascript-typescript-enable)) ;; Auto-generated -
huytd revised this gist
Aug 16, 2018 . 1 changed file with 1 addition and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -297,18 +297,4 @@ (typescript-mode . tide-hl-identifier-mode))) ;; Auto-generated -
huytd revised this gist
Aug 15, 2018 . 1 changed file with 22 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ ;; OrgMode Configs (setq org-return-follows-link t) (setq org-html-validation-link nil) (setq org-todo-keywords '((sequence "TODO" "WORKING" "HOLD" "|" "DONE"))) (setq org-todo-keyword-faces '(("TODO" . "blue") ("WORKING" . "yellow") ("HOLD" . "red") ("DONE" . "green"))) (use-package org-bullets :ensure t :init (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1) ;; Cochin font only available on macOS, AFAIK (setq buffer-face-mode-face '(:family "Cochin" :height 140)) (set-frame-parameter (selected-frame) 'background-mode 'light) (set-face-foreground 'default "#333333" (selected-frame)) (set-face-background 'default "#fafafa" (selected-frame)) ;; (hide-mode-line-mode 1) (buffer-face-mode)))) -
huytd renamed this gist
Jul 30, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@  ```lisp ;; Automatically generated -
huytd revised this gist
Jul 30, 2018 . 1 changed file with 35 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ [](https://i.imgur.com/fche6Df.png) ```lisp ;; Automatically generated (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(anzu-cons-mode-line-p nil) '(mouse-wheel-progressive-speed nil) '(mouse-wheel-scroll-amount (quote (1 ((shift) . 5) ((control))))) '(package-selected-packages (quote (company-lsp emojify web-mode tide tss doom-modeline quickrun org-bullets lsp-ui flycheck-rust spaceline-all-the-icons spaceline flycheck-inline lsp-rust f lsp-mode rust-mode pdf-tools company js2-mode diff-hl editorconfig general which-key helm doom-themes evil use-package))) '(send-mail-function (quote smtpmail-send-it))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:inherit nil :stipple nil :background "#212121" :foreground "#eeffff" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 110 :width normal :foundry "nil" :family "Iosevka")))) '(font-lock-constant-face ((t (:foreground "#C792EA")))) '(font-lock-keyword-face ((t (:foreground "#2BA3FF" :slant italic)))) '(font-lock-preprocessor-face ((t (:inherit bold :foreground "#2BA3FF" :slant italic :weight normal)))) '(font-lock-string-face ((t (:foreground "#C3E88D")))) '(font-lock-type-face ((t (:foreground "#FFCB6B")))) '(font-lock-variable-name-face ((t (:foreground "#FF5370")))) '(helm-rg-active-arg-face ((t (:foreground "LightGreen")))) '(helm-rg-file-match-face ((t (:foreground "LightGreen" :underline t)))) '(helm-rg-preview-line-highlight ((t (:background "LightGreen" :foreground "black")))) '(mode-line ((t (:background "#191919" :box nil)))) '(mode-line-inactive ((t (:background "#282828" :foreground "#5B6268" :box nil)))) '(term ((t (:foreground "#fafafa"))))) ``` -
huytd revised this gist
Jul 27, 2018 . 1 changed file with 33 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -215,9 +215,39 @@ ;; Company mode (use-package company :ensure t :init (setq company-minimum-prefix-length 3) (setq company-auto-complete nil) (setq company-idle-delay 0) (setq company-require-match 'never) (setq company-frontends '(company-pseudo-tooltip-unless-just-one-frontend company-preview-frontend company-echo-metadata-frontend)) (setq tab-always-indent 'complete) (defvar completion-at-point-functions-saved nil) :config (global-company-mode 1) (define-key company-active-map (kbd "TAB") 'company-complete-common-or-cycle) (define-key company-active-map (kbd "<tab>") 'company-complete-common-or-cycle) (define-key company-active-map (kbd "S-TAB") 'company-select-previous) (define-key company-active-map (kbd "<backtab>") 'company-select-previous) (define-key company-mode-map [remap indent-for-tab-command] 'company-indent-for-tab-command) (defun company-indent-for-tab-command (&optional arg) (interactive "P") (let ((completion-at-point-functions-saved completion-at-point-functions) (completion-at-point-functions '(company-complete-common-wrapper))) (indent-for-tab-command arg))) (defun company-complete-common-wrapper () (let ((completion-at-point-functions completion-at-point-functions-saved)) (company-complete-common)))) (use-package company-lsp :ensure t :init (push 'company-lsp company-backends)) ;; Powerline (use-package spaceline -
huytd revised this gist
Jul 25, 2018 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -196,7 +196,6 @@ (add-to-list 'default-frame-alist '(ns-appearance . dark)) (setq ns-use-proxy-icon nil) (setq frame-title-format nil) ;; Flycheck (use-package flycheck -
huytd revised this gist
Jul 16, 2018 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -255,6 +255,18 @@ (add-hook 'rust-mode-hook #'lsp-rust-enable) (add-hook 'rust-mode-hook #'flycheck-mode)) ;; Typescript (use-package typescript-mode :ensure t :init (add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))) (use-package tide :ensure t :after (typescript-mode company flycheck) :hook ((typescript-mode . tide-setup) (typescript-mode . tide-hl-identifier-mode))) ;; Auto-generated ;; custom-set-variables was added by Custom. -
huytd revised this gist
Jul 12, 2018 . 2 changed files with 3 additions and 28 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,29 +1,4 @@ Screenshot:  Font: Iosevka-11 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -70,7 +70,7 @@ (tooltip-mode -1) (menu-bar-mode -1) (global-linum-mode 1) (add-to-list 'default-frame-alist '(font . "Iosevka-11")) (add-to-list 'default-frame-alist '(height . 24)) (add-to-list 'default-frame-alist '(width . 80)) -
huytd revised this gist
Jul 12, 2018 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -87,6 +87,14 @@ :config (evil-escape-mode 1)) ;; Anzu for search matching (use-package anzu :ensure t :config (global-anzu-mode 1) (global-set-key [remap query-replace-regexp] 'anzu-query-replace-regexp) (global-set-key [remap query-replace] 'anzu-query-replace)) ;; Theme (use-package doom-themes :ensure t -
huytd revised this gist
Jul 9, 2018 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,6 +20,20 @@ (split-string-and-unquote path ":") exec-path))) ;; Some term enhancement (defadvice term-sentinel (around my-advice-term-sentinel (proc msg)) (if (memq (process-status proc) '(signal exit)) (let ((buffer (process-buffer proc))) ad-do-it (kill-buffer buffer)) ad-do-it)) (ad-activate 'term-sentinel) (defadvice ansi-term (before force-bash) (interactive (list "/bin/zsh"))) (ad-activate 'ansi-term) ;; Other configs (setq make-backup-files nil) (setq auto-save-default nil) -
huytd revised this gist
Jul 9, 2018 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,6 +36,10 @@ (global-set-key (kbd "s-j") 'forward-paragraph) (global-set-key (kbd "s-k") 'backward-paragraph) ;; Keybinding for term mode (add-hook 'term-mode (lambda () (global-set-key (kbd "s-v") 'term-paste))) ;; OrgMode Configs (setq org-html-validation-link nil) (setq org-todo-keywords -
huytd revised this gist
Jul 9, 2018 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -201,7 +201,9 @@ (setq powerline-default-separator 'slant) :config (spaceline-emacs-theme) (spaceline-toggle-minor-modes-off) (spaceline-toggle-buffer-size-off) (spaceline-toggle-evil-state-on)) ;;;;;;;;;;;;;;;;;;;;;;; ;; Language Supports ;; -
huytd revised this gist
Jul 9, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -197,8 +197,11 @@ ;; Powerline (use-package spaceline :ensure t :init (setq powerline-default-separator 'slant) :config (spaceline-emacs-theme) (spaceline-toggle-minor-modes-off)) ;;;;;;;;;;;;;;;;;;;;;;; ;; Language Supports ;; -
huytd revised this gist
Jul 9, 2018 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,8 +12,15 @@ (package-install 'use-package)) (require 'use-package) ;; PATH (let ((path (shell-command-to-string ". ~/.bash_profile; echo -n $PATH"))) (setenv "PATH" path) (setq exec-path (append (split-string-and-unquote path ":") exec-path))) ;; Other configs (setq make-backup-files nil) (setq auto-save-default nil) @@ -192,13 +199,6 @@ :ensure t :config (spaceline-emacs-theme)) ;;;;;;;;;;;;;;;;;;;;;;; ;; Language Supports ;; -
huytd revised this gist
Jul 5, 2018 . 1 changed file with 62 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -164,6 +164,68 @@ (setq ns-use-proxy-icon nil) (setq frame-title-format nil) (custom-set-variables ;; Flycheck (use-package flycheck :ensure t :init (global-flycheck-mode)) ;; LSP (use-package lsp-mode :ensure t :init (add-hook 'prog-major-mode #'lsp-prog-major-mode-enable)) (use-package lsp-ui :ensure t :init (add-hook 'lsp-mode-hook 'lsp-ui-mode)) ;; Company mode (use-package company :ensure t :config (global-company-mode 1)) ;; Powerline (use-package spaceline :ensure t :config (spaceline-emacs-theme)) (use-package spaceline-all-the-icons :ensure t :after spaceline :init (spaceline-toggle-all-the-icons-git-status-off) (spaceline-toggle-all-the-icons-time-off) :config (spaceline-all-the-icons-theme)) ;;;;;;;;;;;;;;;;;;;;;;; ;; Language Supports ;; ;;;;;;;;;;;;;;;;;;;;;;; ;; JavaScript (use-package js2-mode :ensure t :init (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))) (use-package tern :ensure t) ;; Rust (use-package rust-mode :ensure t :init (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))) (use-package lsp-rust :ensure t :init (setq lsp-rust-rls-command '("rustup" "run" "nightly" "rls")) (add-hook 'rust-mode-hook #'lsp-rust-enable) (add-hook 'rust-mode-hook #'flycheck-mode)) ;; Auto-generated ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. -
huytd revised this gist
Jul 3, 2018 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,6 +17,10 @@ (setq make-backup-files nil) (setq auto-save-default nil) ;; Splash Screen (setq inhibit-startup-screen t) (setq initial-scratch-message ";; Happy Hacking") ;; Show matching parens (setq show-paren-delay 0) (show-paren-mode 1) -
huytd revised this gist
Jul 2, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -146,6 +146,8 @@ "w/" '(split-window-right :which-key "split right") "w-" '(split-window-below :which-key "split bottom") "wx" '(delete-window :which-key "delete window") "qz" '(delete-frame :which-key "delete frame") "qq" '(kill-emacs :which-key "quit") ;; NeoTree "ft" '(neotree-toggle :which-key "toggle neotree") ;; Others -
huytd revised this gist
Jul 2, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -76,7 +76,7 @@ helm-semantic-fuzzy-match t helm-imenu-fuzzy-match t helm-completion-in-region-fuzzy-match t helm-candidate-number-list 80 helm-split-window-in-side-p t helm-move-to-line-cycle-in-source t helm-echo-input-in-header-line t @@ -135,6 +135,7 @@ "pf" '(helm-projectile-find-file :which-key "find files") "pp" '(helm-projectile-switch-project :which-key "switch project") "pb" '(helm-projectile-switch-to-buffer :which-key "switch buffer") "pr" '(helm-show-kill-ring :which-key "show kill ring") ;; Buffers "bb" '(helm-mini :which-key "buffers list") ;; Window -
huytd revised this gist
Jul 2, 2018 . 1 changed file with 15 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -68,15 +68,20 @@ (use-package helm :ensure t :init (setq helm-M-x-fuzzy-match t helm-mode-fuzzy-match t helm-buffers-fuzzy-matching t helm-recentf-fuzzy-match t helm-locate-fuzzy-match t helm-semantic-fuzzy-match t helm-imenu-fuzzy-match t helm-completion-in-region-fuzzy-match t helm-candidate-number-list 150 helm-split-window-in-side-p t helm-move-to-line-cycle-in-source t helm-echo-input-in-header-line t helm-autoresize-max-height 0 helm-autoresize-min-height 20) :config (helm-mode 1)) @@ -131,7 +136,7 @@ "pp" '(helm-projectile-switch-project :which-key "switch project") "pb" '(helm-projectile-switch-to-buffer :which-key "switch buffer") ;; Buffers "bb" '(helm-mini :which-key "buffers list") ;; Window "wl" '(windmove-right :which-key "move right") "wh" '(windmove-left :which-key "move left") -
huytd revised this gist
Jul 2, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,6 +42,8 @@ (menu-bar-mode -1) (global-linum-mode 1) (add-to-list 'default-frame-alist '(font . "mononoki-12")) (add-to-list 'default-frame-alist '(height . 24)) (add-to-list 'default-frame-alist '(width . 80)) ;; Vim mode (use-package evil -
huytd revised this gist
Jul 2, 2018 . 1 changed file with 24 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,6 +13,7 @@ (require 'use-package) ;; Other configs (add-to-list 'exec-path "/usr/local/bin/") (setq make-backup-files nil) (setq auto-save-default nil) @@ -40,6 +41,7 @@ (tooltip-mode -1) (menu-bar-mode -1) (global-linum-mode 1) (add-to-list 'default-frame-alist '(font . "mononoki-12")) ;; Vim mode (use-package evil @@ -66,11 +68,19 @@ :init (setq helm-M-x-fuzzy-match t) (setq helm-mode-fuzzy-match t) (setq helm-buffers-fuzzy-matching t) (setq helm-recentf-fuzzy-match t) (setq helm-locate-fuzzy-match t) (setq helm-semantic-fuzzy-match t) (setq helm-imenu-fuzzy-match t) (setq helm-completion-in-region-fuzzy-match t) (setq helm-candidate-number-list 150) :config (helm-mode 1)) ;; RipGrep (use-package helm-rg :ensure t) ;; Projectile (use-package projectile :ensure t @@ -79,6 +89,14 @@ :config (projectile-mode 1)) ;; Helm Projectile (use-package helm-projectile :ensure t :init (setq helm-projectile-fuzzy-match t) :config (helm-projectile-on)) ;; All The Icons (use-package all-the-icons :ensure t) @@ -104,10 +122,12 @@ :states '(normal visual insert emacs) :prefix "SPC" :non-normal-prefix "M-SPC" "/" '(helm-projectile-rg :which-key "ripgrep") "TAB" '(switch-to-prev-buffer :which-key "previous buffer") "SPC" '(helm-M-x :which-key "M-x") "pf" '(helm-projectile-find-file :which-key "find files") "pp" '(helm-projectile-switch-project :which-key "switch project") "pb" '(helm-projectile-switch-to-buffer :which-key "switch buffer") ;; Buffers "bb" '(helm-buffers-list :which-key "buffers list") ;; Window @@ -143,3 +163,4 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) -
huytd revised this gist
Jul 1, 2018 . 1 changed file with 14 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,14 +13,27 @@ (require 'use-package) ;; Other configs (setq make-backup-files nil) (setq auto-save-default nil) ;; Show matching parens (setq show-paren-delay 0) (show-paren-mode 1) ;; Paragraph movement (global-set-key (kbd "s-j") 'forward-paragraph) (global-set-key (kbd "s-k") 'backward-paragraph) ;; OrgMode Configs (setq org-html-validation-link nil) (setq org-todo-keywords '((sequence "TODO" "WORKING" "HOLD" "|" "DONE"))) (setq org-todo-keyword-faces '(("TODO" . "blue") ("WORKING" . "yellow") ("HOLD" . "red") ("DONE" . "green"))) ;; UI configurations (scroll-bar-mode -1) (tool-bar-mode -1) -
huytd revised this gist
Jul 1, 2018 . 1 changed file with 17 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,11 +17,16 @@ (setq make-backup-files nil) (setq auto-save-default nil) ;; Show matching parens (setq show-paren-delay 0) (show-paren-mode 1) ;; UI configurations (scroll-bar-mode -1) (tool-bar-mode -1) (tooltip-mode -1) (menu-bar-mode -1) (global-linum-mode 1) ;; Vim mode (use-package evil @@ -61,6 +66,15 @@ :config (projectile-mode 1)) ;; All The Icons (use-package all-the-icons :ensure t) ;; NeoTree (use-package neotree :ensure t :init (setq neo-theme (if (display-graphic-p) 'icons 'arrow))) ;; Which Key (use-package which-key :ensure t @@ -91,6 +105,8 @@ "w/" '(split-window-right :which-key "split right") "w-" '(split-window-below :which-key "split bottom") "wx" '(delete-window :which-key "delete window") ;; NeoTree "ft" '(neotree-toggle :which-key "toggle neotree") ;; Others "at" '(ansi-term :which-key "open terminal") )) -
huytd revised this gist
Jul 1, 2018 . 1 changed file with 85 additions and 56 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ ;; Package configs (require 'package) (setq package-enable-at-startup nil) (setq package-archives '(("org" . "http://orgmode.org/elpa/") ("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/"))) (package-initialize) ;; Bootstrap `use-package` @@ -12,73 +12,102 @@ (package-install 'use-package)) (require 'use-package) ;; Other configs (setq org-html-validation-link nil) (setq make-backup-files nil) (setq auto-save-default nil) ;; Minimal UI (scroll-bar-mode -1) (tool-bar-mode -1) (tooltip-mode -1) (menu-bar-mode -1) ;; Vim mode (use-package evil :ensure t :config (evil-mode 1)) (use-package evil-escape :ensure t :init (setq-default evil-escape-key-sequence "jk") :config (evil-escape-mode 1)) ;; Theme (use-package doom-themes :ensure t :config (load-theme 'doom-one t)) ;; Helm (use-package helm :ensure t :init (setq helm-M-x-fuzzy-match t) (setq helm-mode-fuzzy-match t) (setq helm-completion-in-region-fuzzy-match t) (setq helm-candidate-number-list 50) :config (helm-mode 1)) ;; Projectile (use-package projectile :ensure t :init (setq projectile-require-project-root nil) :config (projectile-mode 1)) ;; Which Key (use-package which-key :ensure t :init (setq which-key-separator " ") (setq which-key-prefix-prefix "+") :config (which-key-mode)) ;; Custom keybinding (use-package general :ensure t :config (general-define-key :states '(normal visual insert emacs) :prefix "SPC" :non-normal-prefix "M-SPC" ;; "/" '(counsel-rg :which-key "ripgrep") ; You'll need counsel package for this "TAB" '(switch-to-prev-buffer :which-key "previous buffer") "SPC" '(helm-M-x :which-key "M-x") "pf" '(helm-find-file :which-key "find files") ;; Buffers "bb" '(helm-buffers-list :which-key "buffers list") ;; Window "wl" '(windmove-right :which-key "move right") "wh" '(windmove-left :which-key "move left") "wk" '(windmove-up :which-key "move up") "wj" '(windmove-down :which-key "move bottom") "w/" '(split-window-right :which-key "split right") "w-" '(split-window-below :which-key "split bottom") "wx" '(delete-window :which-key "delete window") ;; Others "at" '(ansi-term :which-key "open terminal") )) ;; Fancy titlebar for MacOS (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . dark)) (setq ns-use-proxy-icon nil) (setq frame-title-format nil) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages (quote (general which-key helm doom-themes evil use-package)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. -
huytd renamed this gist
Jun 10, 2018 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,9 @@ Screenshot:  Custom keybinding: ``` General: SPC / : ripgrep SPC TAB : previous buffer @@ -24,4 +25,5 @@ Usage: SPC w x : close window Other: SPC a t : open terminal in current buffer ``` -
huytd revised this gist
Jun 10, 2018 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,7 +33,9 @@ ;; Fancy titlebar for MacOS (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . dark)) (setq ns-use-proxy-icon nil) (setq frame-title-format nil) ;; Main keybinding (use-package general :ensure t -
huytd revised this gist
Jun 10, 2018 . 2 changed files with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,6 +31,10 @@ (setq helm-completion-in-region-fuzzy-match t) (setq helm-candidate-number-list 50) ;; Fancy titlebar for MacOS (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . 'nil)) ;; Main keybinding (use-package general :ensure t :config (general-define-key @@ -51,6 +55,8 @@ "w/" '(split-window-right :which-key "split right") "w-" '(split-window-below :which-key "split bottom") "wx" '(delete-window :which-key "delete window") ;; Others "at" '(ansi-term :which-key "open terminal") )) (custom-set-variables This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,4 +22,6 @@ Usage: SPC w / : split right SPC w - : split bottom SPC w x : close window Other: SPC a t : open terminal in current buffer -
huytd revised this gist
Jun 10, 2018 . 2 changed files with 25 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,10 +12,6 @@ (package-install 'use-package)) (require 'use-package) ;; Packages (use-package which-key :ensure t) (use-package helm :ensure t) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ Usage: - Evil mode - Custom keybinding: General: SPC / : ripgrep SPC TAB : previous buffer SPC SPC : Open M-x Files: SPC p f : find files Buffers: SPC b b : buffers list Window: SPC w l : move right SPC w h : move left SPC w j : move down SPC w k : move up SPC w / : split right SPC w - : split bottom SPC w x : close window
-
huytd created this gist
Jun 10, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,83 @@ ;; Package configs (require 'package) (setq package-enable-at-startup nil) (setq package-archives '(("org" . "http://orgmode.org/elpa/") ("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/"))) (package-initialize) ;; Bootstrap `use-package` (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (require 'use-package) ;; Avy package, not loaded until avy-goto-word-1 called (use-package avy :ensure t :commands (avy-goto-word-1)) ;; Packages (use-package which-key :ensure t) (use-package helm :ensure t) (use-package counsel :ensure t) (use-package hydra :ensure t) (use-package evil :ensure t) (use-package doom-themes :ensure t) ;; Start packages (which-key-mode) (evil-mode 1) ;; Config (setq which-key-separator " ") (setq which-key-prefix-prefix "+") (setq helm-mode-fuzzy-match t) (setq helm-completion-in-region-fuzzy-match t) (setq helm-candidate-number-list 50) ;; Main keybinding (use-package general :ensure t :config (general-define-key :states '(normal visual insert emacs) :prefix "SPC" :non-normal-prefix "M-SPC" "/" '(counsel-rg :which-key "ripgrep") "TAB" '(switch-to-prev-buffer :which-key "previous buffer") "SPC" '(helm-M-x :which-key "M-x") "pf" '(helm-find-file :which-key "find files") ;; Buffers "bb" '(helm-buffers-list :which-key "buffers list") ;; Window "wl" '(windmove-right :which-key "move right") "wh" '(windmove-left :which-key "move left") "wk" '(windmove-up :which-key "move up") "wj" '(windmove-down :which-key "move bottom") "w/" '(split-window-right :which-key "split right") "w-" '(split-window-below :which-key "split bottom") "wx" '(delete-window :which-key "delete window") )) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-enabled-themes (quote (doom-one))) '(custom-safe-themes (quote ("9d9fda57c476672acd8c6efeb9dc801abea906634575ad2c7688d055878e69d6" "a566448baba25f48e1833d86807b77876a899fc0c3d33394094cf267c970749f" default))) '(menu-bar-mode nil) '(mouse-wheel-progressive-speed nil) '(mouse-wheel-scroll-amount (quote (1 ((shift) . 5) ((control))))) '(package-selected-packages (quote (evil which-key use-package hydra general counsel avy))) '(scroll-bar-mode nil) '(tool-bar-mode nil) '(tooltip-mode nil)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )