Various programming, markup, config, data exchange languages…
;;; all.el --- All langs
;;; Commentary:
;;
;;; Code:
(use-package format-all
:ensure-system-package (prettier)
:ensure-system-package (tidy)
:ensure-system-package (black . "pip install black")
:ensure-system-package (rufo . "gem install rufo"))
(provide 'all)
;;; all.el ends here
;;; asm.el --- Asm
;;; Commentary:
;;; Code:
(use-package disaster
:custom
(disaster-objdump "objdump -d -M intel")
(disaster-project-root-files (list (list "setup.py" "package.json"))))
(provide 'asm)
;;; asm.el ends here
;;; emacs-lisp.el --- Emacs Lisp
;;; Commentary:
;;; Code:
;; (use-package lisp
;; :hook
;; (after-save . check-parens))
(use-package package-lint)
(use-package flycheck-package
:after (flycheck package-lint)
:config
(flycheck-package-setup))
(use-package cov
:config
(setq gcov-coverage-file-paths '("." "../coverage/lcov" "../../coverage/lcov")
gcov-coverage-alist '((".lcov" . lcov))))
(provide 'emacs-lisp)
;;; emacs-lisp.el ends here
;;; go.el --- Go
;;; Commentary:
;;; Code:
(use-package go-mode
:mode "\\.go\\'")
(provide 'go)
;;; go.el ends here
;;; html.el --- Html
;;; Commentary:
;;; Code:
(use-package mhtml-mode
:ensure-system-package (html-languageserver . "npm i -g vscode-html-languageserver-bin"))
(use-package html-check-frag
:hook (html-mode . (lambda () (html-check-frag-mode 1))))
(provide 'html)
;;; html.el ends here
;;; json.el --- JSON
;;; Commentary:
;;
;;; Code:
(use-package json-mode)
(provide 'json)
;;; json.el ends here
;;; orgmode.el --- Org Mode
;;; Commentary:
;;; Code:
(defun icostan/capture_template (name)
"Return template file for NAME."
`(file concat("templates/" name)))
(use-package org
:ensure org-plus-contrib
:init
(setq image-file-name-regexps (list (regexp-quote "svg"))
org-todo-keyword-faces '(("N/A" . "gray") ("CANCELED" . "gray") ("DONE" . "green") ("FAIL" . "red"))
org-confirm-babel-evaluate nil
org-agenda-files (directory-files-recursively "~/Projects" "TODOs\\.org")
;; org-agenda-files `()
org-agenda-window-setup 'other-window
org-agenda-restore-windows-after-quit t)
:config
(setq org-default-notes-file (concat org-directory "/notes.org")
org-capture-templates
'(("e" "emacs.d" entry (file+headline "~/Projects/emacs.d/TODOs.org" "Tasks") (file "templates/emacs.d-todo.org"))
("a" "arch.d" entry (file+headline "~/Projects/arch.d/TODOs.org" "Tasks") (file "templates/arch.d-todo.org"))
("o" "org.d" checkitem (file+datetree "~/Projects/org.d/journal/20200601") (file "templates/org.d-todo.org"))))
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(haskell . t)
(ledger . t)
(python . t)
(ruby . t)
(shell . t)
(sql . nil))))
(use-package org-journal
:after org
:init
(setq org-journal-dir "~/Projects/org.d/journal"
org-journal-file-type 'monthly
org-read-date-popup-calendar nil)
:config
(setq org-journal-date-format "%A, %x"
org-journal-time-format ""
org-journal-time-prefix " - [ ] "))
(use-package org-tanglesync
:hook ((org-mode . org-tanglesync-mode)
((prog-mode text-mode) . org-tanglesync-watch-mode))
;; :custom
;; (org-tanglesync-watch-files '("~/Projects/emacs.d/langs/README.org"))
;; (org-tanglesync-default-diff-action :external)
;; (org-tanglesync-watch-mode 1)
:config
(setq org-tanglesync-watch-files '("README.org")
org-tanglesync-watch-mode 1
org-tanglesync-default-diff-action :external))
(use-package org-preview-html)
;; (use-package evil-org
;; :after (org evil)
;; :config
;; (add-hook 'org-mode-hook 'evil-org-mode)
;; (add-hook 'evil-org-mode-hook
;; (lambda ()
;; (evil-org-set-key-theme)))
;; (require 'evil-org-agenda)
;; (evil-org-agenda-set-keys))
(use-package org-evil
:config
(org-evil-mode))
(provide 'orgmode)
;;; orgmode.el ends here
Pine Script by TradingView
;;; pine.el --- Pine
;;; Commentary:
;;; Code:
(use-package pine-script-mode
:mode (("\\.pine" . pine-script-mode)))
(provide 'pine)
;;; pine.el ends here
;;; python-lang.el --- Python-Lang
;;; Commentary:
;;; Code:
(use-package python
:ensure-system-package (pyls . python-language-server)
:mode ("\\.py\\'" . python-mode)
:interpreter ("python" . python-mode))
(provide 'python-lang)
;;; python-lang.el ends here
Environment setup with Rbenv, Bundler package manager and testing with RSpec/Ministest.
;;; ruby.el --- Ruby
;;; Commentary:
;;; Code:
(use-package ruby-mode
:ensure-system-package
((rubocop . "ruby-rubocop")
(ruby-lint . "ruby-lint")
(solargraph . "ruby-solargraph")
(pry . "ruby-pry"))
:general
(general-nmap ", s" '(minitest-verify-single :wk "test single")
", a" '(minitest-verify-all :wk "test all"))
:mode "\\.rb\\'"
:interpreter "ruby")
(use-package rspec-mode
:after ruby-mode
:config (rspec-install-snippets))
(use-package minitest
:after ruby-mode
:config (minitest-install-snippets))
(use-package bundler
:after ruby-mode)
(use-package rbenv
:after ruby-mode
:config (global-rbenv-mode))
(use-package feature-mode
:custom
(feature-use-docker-compose nil))
(provide 'ruby)
;;; ruby.el ends here
;;; rust.el --- Rust
;;; Commentary:
;;; Code:
(use-package rustic
:custom
(rustic-format-trigger 'on-save))
(provide 'rust)
;;; rust.el ends here
;;; sage.el --- Sage
;;; Commentary:
;;
;;; Code:
(use-package sage-shell-mode
:config
(sage-shell:define-alias))
(use-package ob-sagemath
:after sage-shell-mode
:custom
(org-babel-default-header-args:sage '((:session . t)
(:results . "output"))))
(provide 'sage)
;;; sage.el ends here
;;; yaml.el --- Yaml
;;; Commentary:
;;; Code:
(use-package yaml-mode
:ensure-system-package (yaml-language-server . "npm i -g yaml-language-server"))
(provide 'yaml)
;;; yaml.el ends here