diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | examples/test.js | 1 | ||||
-rw-r--r-- | init.el | 2 | ||||
-rw-r--r-- | lisp/general.el | 26 | ||||
-rw-r--r-- | lisp/python-custom.el | 5 |
5 files changed, 28 insertions, 9 deletions
@@ -17,4 +17,5 @@ tutorial .org-id-locations org-roam.db bookmarks -tramp
\ No newline at end of file +tramp +request
\ No newline at end of file diff --git a/examples/test.js b/examples/test.js index fc33c2a..80c7edc 100644 --- a/examples/test.js +++ b/examples/test.js @@ -32,3 +32,4 @@ c.setValue(11); for (let index = 0; index < 30; index++) { console.log("Here"); } + @@ -57,7 +57,7 @@ '(custom-safe-themes '("3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" "a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e" default)) '(package-selected-packages - '(smart-mode-line magit rust-mode xref-js2 web-mode vterm-toggle vscode-dark-plus-theme treemacs-projectile tree-sitter-langs tide tern smartparens rtags req-package rainbow-mode pythonic python-mode perfect-margin org-roam org-notify org-modern org-bullets org-alert minimap markdown-mode json-mode js2-refactor js2-highlight-vars js-doc ido-vertical-mode hl-todo highlight-thing highlight-indent-guides helm-projectile helm-posframe helm-ag good-scroll go-mode git-gutter-fringe git-commit flycheck-irony evil eslint-fix emojify eldoc-box eglot drag-stuff doom-themes dashboard css-eldoc counsel company-quickhelp company-irony cmake-mode cmake-ide auctex all-the-icons ac-js2)) + '(fast-scroll yasnippet-snippets jsdoc helm-slack slack smart-mode-line magit rust-mode xref-js2 web-mode vterm-toggle vscode-dark-plus-theme treemacs-projectile tree-sitter-langs tide tern smartparens rtags req-package rainbow-mode pythonic python-mode perfect-margin org-roam org-notify org-modern org-bullets org-alert minimap markdown-mode json-mode js2-refactor js2-highlight-vars js-doc ido-vertical-mode hl-todo highlight-thing highlight-indent-guides helm-projectile helm-posframe helm-ag good-scroll go-mode git-gutter-fringe git-commit flycheck-irony evil eslint-fix emojify eldoc-box eglot drag-stuff doom-themes dashboard css-eldoc counsel company-quickhelp company-irony cmake-mode cmake-ide auctex all-the-icons ac-js2)) '(safe-local-variable-values '((js-indent-level . 4)))) (custom-set-faces ;; custom-set-faces was added by Custom. diff --git a/lisp/general.el b/lisp/general.el index da3496f..c2de9b4 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -41,6 +41,15 @@ ;; Tab mode (global-tab-line-mode t) +;; Disable major modes on long lines +(global-so-long-mode 1) + +(use-package fast-scroll + :ensure t + :config + (fast-scroll-config) + (fast-scroll-mode 1)) + ;; Ability to fold regions (add-hook 'javascript-mode-hook (lambda () (hs-minor-mode 1))) (add-hook 'typescript-mode-hook (lambda () (hs-minor-mode 1))) @@ -250,7 +259,7 @@ :config (setq company-idle-delay 0.5 company-minimum-prefix-length 2 - company-tooltip-limit 20 + company-tooltip-limit 10 company-backends '((company-capf company-gtags company-elisp company-css company-dabbrev)) ) ) @@ -260,7 +269,7 @@ :defer t :init (company-quickhelp-mode 1) :config - (setq company-quickhelp-delay 0 + (setq company-quickhelp-delay 0.5 ) ) @@ -355,6 +364,19 @@ (setq flycheck-check-syntax-automatically '(save mode-enable)) '(flycheck-idle-change-delay 1)) +;; Snippets +(use-package yasnippet + :ensure t + :config + ;(setq yas-snippet-dirs + ; '("~/.emacs.d/snippets" ;; personal snippets + ; )) + (yas-global-mode 1) + (bind-key* (kbd "C-c y i") 'yas/insert-snippet) + ) + +(use-package yasnippet-snippets + :ensure t) (provide 'general) ;;; general.el ends here diff --git a/lisp/python-custom.el b/lisp/python-custom.el index 10c4cfc..2c602a5 100644 --- a/lisp/python-custom.el +++ b/lisp/python-custom.el @@ -29,10 +29,5 @@ indent) "\n")))) -(use-package yasnippet - :ensure t - :config - (yas-global-mode 1)) - (provide 'python-custom) ;;; python-custom.el ends here |