Skip to content

Commit

Permalink
add minimal ts setup
Browse files Browse the repository at this point in the history
  • Loading branch information
irfn committed Dec 23, 2020
1 parent f0cd145 commit 69c74f5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
("melpa" . "https://melpa.org/packages/")
("ox-odt" . "https://kjambunathan.github.io/elpa/")))
'(package-selected-packages
'(ob-rust erlang-mode gotest dashboard flycheck-rust ox-odt mustache-mode mustache lua-mode srcery-theme vscdark-theme use-package terraform-mode suscolors-theme smex ruby-hash-syntax rubocopfmt rubocop rspec-mode rg rbenv rainbow-delimiters racer protobuf-mode plantuml-mode ox-gfm org-present org-gcal org-bullets ob-sml ob-go night-owl-theme neotree lsp-ui load-env-vars kubernetes k8s-mode jsonnet-mode intero inkpot-theme inf-ruby indent-tools helm-rg helm-projectile gruvbox-theme go-snippets go-guru go-eldoc flymake-yaml flymake-rust flymake-ruby flymake-go flycheck-golangci-lint exec-path-from-shell erlang enh-ruby-mode emoji-cheat-sheet-plus dracula-theme doom-modeline dockerfile-mode docker-compose-mode docker company-lsp company-go company-emoji company-distel clojure-mode-extra-font-locking cider cargo auto-org-md atom-one-dark-theme ansible-vault ample-zen-theme all-the-icons-dired alchemist ace-window))
'(tide ob-rust erlang-mode gotest dashboard flycheck-rust ox-odt mustache-mode mustache lua-mode srcery-theme vscdark-theme use-package terraform-mode suscolors-theme smex ruby-hash-syntax rubocopfmt rubocop rspec-mode rg rbenv rainbow-delimiters racer protobuf-mode plantuml-mode ox-gfm org-present org-gcal org-bullets ob-sml ob-go night-owl-theme neotree lsp-ui load-env-vars kubernetes k8s-mode jsonnet-mode intero inkpot-theme inf-ruby indent-tools helm-rg helm-projectile gruvbox-theme go-snippets go-guru go-eldoc flymake-yaml flymake-rust flymake-ruby flymake-go flycheck-golangci-lint exec-path-from-shell erlang enh-ruby-mode emoji-cheat-sheet-plus dracula-theme doom-modeline dockerfile-mode docker-compose-mode docker company-lsp company-go company-emoji company-distel clojure-mode-extra-font-locking cider cargo auto-org-md atom-one-dark-theme ansible-vault ample-zen-theme all-the-icons-dired alchemist ace-window))
'(plantuml-default-exec-mode 'jar)
'(plantuml-jar-args '("-charset" "UTF-8" "--illegal-access" "deny"))
'(shell-file-name "/usr/local/bin/fish"))
Expand Down
4 changes: 3 additions & 1 deletion ide.org
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ only Emacs can save your soul"
#+BEGIN_SRC emacs-lisp
(use-package flycheck
:ensure t
:hook (prog-mode . flycheck-mode))
:hook (
(prog-mode . flycheck-mode)
(setq flycheck-check-syntax-automatically '(save mode-enabled))))

(use-package hi-lock
:bind (("C-RET h l" . highlight-lines-matching-regexp)
Expand Down
1 change: 1 addition & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
(tangle-file "haskell.org")
(tangle-file "sml.org")
(tangle-file "ruby.org")
(tangle-file "ts.org")

(push (expand-file-name "~/.emacs.d/elisp") load-path)
(require 'config)
Expand Down
18 changes: 18 additions & 0 deletions ts.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#+TITLE: Typescript IDE
#+AUTHOR: Irfan Shah

* Tide

Tide initialization

#+BEGIN_SRC emacs-lisp
(use-package tide
:ensure t
:after (typescript-mode company flycheck)
:hook ((typescript-mode . tide-setup)
(typescript-mode . tide-hl-identifier-mode)
(before-save . tide-format-before-save)
(tide-start-server-if-required)
(eldoc-mode)
))
#+END_SRC

0 comments on commit 69c74f5

Please sign in to comment.