summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew.kosarek@vention.cc>2023-04-01 09:52:59 -0400
committerMatthew Kosarek <matthew.kosarek@vention.cc>2023-04-01 09:52:59 -0400
commit3125d4abea8731a9742e445275d4fea06ab3cb6d (patch)
treecd0fe30808d64066c48ded14b421c11fae1c444d
parent58845c042ecd5f9ae66bdb7405d45958952d95f5 (diff)
Various improvements for performance
-rw-r--r--.gitignore3
-rw-r--r--examples/test.js1
-rw-r--r--init.el2
-rw-r--r--lisp/general.el26
-rw-r--r--lisp/python-custom.el5
5 files changed, 28 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index 47d282f..3e28789 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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");
}
+
diff --git a/init.el b/init.el
index 6c6fc30..e1c5baf 100644
--- a/init.el
+++ b/init.el
@@ -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