mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-05 08:53:38 -08:00
updates
This commit is contained in:
@@ -21,12 +21,13 @@
|
||||
;; font string. You generally only need these two:
|
||||
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
|
||||
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
|
||||
(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 24))
|
||||
;; (setq doom-font (font-spec :family "FiraCode Nerd Font" :size 14))
|
||||
(setq doom-font (font-spec :family "mononoki Nerd Font Mono" :size 16))
|
||||
|
||||
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||
;; `load-theme' function. This is the default:
|
||||
(setq doom-theme 'doom-material)
|
||||
(setq doom-theme 'doom-one)
|
||||
|
||||
;; If you use `org' and don't want your org files in the default location below,
|
||||
;; change `org-directory'. It must be set before org loads!
|
||||
@@ -36,6 +37,18 @@
|
||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||
(setq display-line-numbers-type t)
|
||||
|
||||
(setq rainbow-delimiters-mode t)
|
||||
(setq rainbow-mode t)
|
||||
(setq confirm-kill-emacs nil)
|
||||
(setq prettify-symbols-mode nil)
|
||||
(setq global-prettify-symbols-mode nil)
|
||||
|
||||
(setq browse-url-browser-function 'browse-url-firefox)
|
||||
|
||||
(use-package wakatime-mode :ensure t)
|
||||
|
||||
|
||||
(global-wakatime-mode)
|
||||
|
||||
;; Here are some additional functions/macros that could help you configure Doom:
|
||||
;;
|
||||
@@ -53,22 +66,51 @@
|
||||
;;
|
||||
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
||||
;; they are implemented.
|
||||
(use-package wakatime-mode :ensure t)
|
||||
|
||||
(global-wakatime-mode)
|
||||
|
||||
(require 'org-bullets)
|
||||
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
|
||||
|
||||
;; enable japanese input in emacs i think
|
||||
;; (require 'mozc)
|
||||
(setq default-input-method "japanese-mozc")
|
||||
(setq mozc-candidate-style 'overlay)
|
||||
(after! company
|
||||
(setq +lsp-company-backends '(company-tabnine :separate company-capf company-yasnippet))
|
||||
(setq company-show-quick-access t)
|
||||
(setq company-idle-delay 0)
|
||||
)
|
||||
|
||||
(use-package! lsp
|
||||
:init
|
||||
(setq lsp-pyls-plugins-pylint-enabled t)
|
||||
(setq lsp-pyls-plugins-autopep8-enabled nil)
|
||||
(setq lsp-pyls-plugins-autopep8-enabled t)
|
||||
(setq lsp-pyls-plugins-yapf-enabled t)
|
||||
(setq lsp-pyls-plugins-pyflakes-enabled nil)
|
||||
(setq lsp-pyls-plugins-pyflakes-enabled t)
|
||||
)
|
||||
|
||||
(add-hook 'org-mode-hook #'org-bullets-mode)
|
||||
|
||||
(add-hook 'before-save-hook 'py-isort-before-save)
|
||||
|
||||
(setq python-shell-interpreter "ipython"
|
||||
python-shell-interpreter-args "-i --simple-prompt --InteractiveShell.display_page=True")
|
||||
|
||||
(flycheck-define-checker python-pycoverage
|
||||
"A Python test coverage checker using the pycoverage tool.
|
||||
|
||||
See `https://github.com/mattharrison/pycoverage.el'.
|
||||
|
||||
This works after pytest has run by marking lines missing
|
||||
coverage (as reported by pytest) as flycheck issues. If the code
|
||||
was updated after pytest was run then nothing is reported.
|
||||
"
|
||||
:command
|
||||
("python" "-c"
|
||||
(eval
|
||||
(mapconcat 'identity
|
||||
(list
|
||||
"import sys"
|
||||
(format "sys.path.insert(0, '%scov2emacs')" (file-name-directory (locate-library "pycoverage")))
|
||||
"from cov2emacslib.__init__ import main"
|
||||
"main(sys.argv[1:])")
|
||||
";"))
|
||||
"--compile-mode" "--python-file" source-original)
|
||||
:error-patterns ((warning line-start (file-name) ":" line ":" (message) line-end))
|
||||
:modes (python-mode))
|
||||
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((python . t)))
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
;; 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 '(w3m wakatime-mode)))
|
||||
'(package-selected-packages '(wakatime-mode)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
||||
58
doom/init.el
58
doom/init.el
@@ -16,14 +16,15 @@
|
||||
|
||||
(doom! :input
|
||||
;;chinese
|
||||
japanese
|
||||
;;japanese
|
||||
;;layout ; auie,ctsrnm is the superior home row
|
||||
|
||||
:completion
|
||||
company ; the ultimate code completion backend
|
||||
;;helm ; the *other* search engine for love and life
|
||||
;;ido ; the other *other* search engine...
|
||||
ivy ; a search engine for love and life
|
||||
;;ivy ; a search engine for love and life
|
||||
vertico ; the search engine of the future
|
||||
|
||||
:ui
|
||||
;;deft ; notational velocity for Emacs
|
||||
@@ -31,15 +32,14 @@
|
||||
doom-dashboard ; a nifty splash screen for Emacs
|
||||
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||
(emoji +unicode) ; 🙂
|
||||
;;fill-column ; a `fill-column' indicator
|
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
;;hydra
|
||||
;;indent-guides ; highlighted indent columns
|
||||
ligatures ; ligatures and symbols to make your code pretty again
|
||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||
minimap ; show a map of the code on the side
|
||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||
;;nav-flash ; blink cursor line after big motions
|
||||
neotree ; a project drawer, like NERDTree for vim
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
ophints ; highlight the region an operation acts on
|
||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||
;;tabs ; a tab bar for Emacs
|
||||
@@ -56,7 +56,6 @@
|
||||
file-templates ; auto-snippets for empty files
|
||||
fold ; (nigh) universal code folding
|
||||
(format +onsave) ; automated prettiness
|
||||
(global-wakatime-mode)
|
||||
;;god ; run Emacs commands without modifier keys
|
||||
;;lispy ; vim for lisp, for people who don't like vim
|
||||
multiple-cursors ; editing in many places at once
|
||||
@@ -81,20 +80,20 @@
|
||||
|
||||
:checkers
|
||||
syntax ; tasing you for every semicolon you forget
|
||||
spell ; tasing you for misspelling mispelling
|
||||
;;(spell +flyspell) ; tasing you for misspelling mispelling
|
||||
;;grammar ; tasing grammar mistake every you make
|
||||
|
||||
:tools
|
||||
;;ansible
|
||||
debugger ; FIXME stepping through code, to help you add bugs
|
||||
;;direnv
|
||||
;;docker
|
||||
direnv
|
||||
docker
|
||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||
;;ein ; tame Jupyter notebooks with emacs
|
||||
(eval +overlay) ; run code, run (also, repls)
|
||||
gist ; interacting with github gists
|
||||
lookup ; navigate your code and its documentation
|
||||
;;lsp
|
||||
lsp ; M-x vscode
|
||||
magit ; a git porcelain for Emacs
|
||||
make ; run make tasks from Emacs
|
||||
;;pass ; password manager for nerds
|
||||
@@ -104,7 +103,7 @@
|
||||
;;taskrunner ; taskrunner for all your projects
|
||||
;;terraform ; infrastructure as code
|
||||
;;tmux ; an API for interacting with tmux
|
||||
;;upload ; map local to remote projects via ssh/ftp
|
||||
upload ; map local to remote projects via ssh/ftp
|
||||
|
||||
:os
|
||||
(:if IS-MAC macos) ; improve compatibility with macOS
|
||||
@@ -112,38 +111,39 @@
|
||||
|
||||
:lang
|
||||
;;agda ; types of types of types of types...
|
||||
cc ; C/C++/Obj-C madness
|
||||
;;beancount ; mind the GAAP
|
||||
cc ; C > C++ == 1
|
||||
;;clojure ; java with a lisp
|
||||
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||
;;coq ; proofs-as-programs
|
||||
;;crystal ; ruby at the speed of c
|
||||
;;csharp ; unity, .NET, and mono shenanigans
|
||||
;;data ; config/data formats
|
||||
data ; config/data formats
|
||||
;;(dart +flutter) ; paint ui and not much else
|
||||
;;dhall
|
||||
;;elixir ; erlang done right
|
||||
;;elm ; care for a cup of TEA?
|
||||
emacs-lisp ; drown in parentheses
|
||||
;;erlang ; an elegant language for a more civilized age
|
||||
;;ess ; emacs speaks statistics
|
||||
;;factor
|
||||
;;faust ; dsp, but you get to keep your soul
|
||||
;;fsharp ; ML stands for Microsoft's Language
|
||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||
;;gdscript ; the language you waited for
|
||||
;;(go +lsp) ; the hipster dialect
|
||||
;;(haskell +dante) ; a language that's lazier than I am
|
||||
;;(haskell +lsp) ; a language that's lazier than I am
|
||||
;;hy ; readability of scheme w/ speed of python
|
||||
;;idris ; a language you can depend on
|
||||
json ; At least it ain't XML
|
||||
(java +meghanada) ; the poster child for carpal tunnel syndrome
|
||||
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||
;;(java +lsp)
|
||||
;;julia ; a better, faster MATLAB
|
||||
;;kotlin ; a better, slicker Java(Script)
|
||||
latex ; writing papers in Emacs has never been so fun
|
||||
;;lean
|
||||
;;factor
|
||||
;;ledger ; an accounting system in Emacs
|
||||
lua ; one-based indices? one-based indices
|
||||
;;latex ; writing papers in Emacs has never been so fun
|
||||
;;lean ; for folks with too much to prove
|
||||
;;ledger ; be audit you can be
|
||||
;;lua ; one-based indices? one-based indices
|
||||
markdown ; writing docs for people to ignore
|
||||
;;nim ; python + lisp at the speed of c
|
||||
nix ; I hereby declare "nix geht mehr!"
|
||||
@@ -151,37 +151,39 @@
|
||||
org ; organize your plain life in plain text
|
||||
;;php ; perl's insecure younger brother
|
||||
;;plantuml ; diagrams for confusing people more
|
||||
purescript ; javascript, but functional
|
||||
python ; beautiful is better than ugly
|
||||
;;purescript ; javascript, but functional
|
||||
(python +lsp) ; beautiful is better than ugly
|
||||
;;qt ; the 'cutest' gui framework ever
|
||||
;;racket ; a DSL for DSLs
|
||||
;;raku ; the artist formerly known as perl6
|
||||
rest ; Emacs as a REST client
|
||||
;;rest ; Emacs as a REST client
|
||||
;;rst ; ReST in peace
|
||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||
;;scala ; java, but good
|
||||
;;scheme ; a fully conniving family of lisps
|
||||
;;(scheme +guile) ; a fully conniving family of lisps
|
||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||
;;sml
|
||||
;;solidity ; do you need a blockchain? No.
|
||||
;;swift ; who asked for emoji variables?
|
||||
;;terra ; Earth and Moon in alignment for performance.
|
||||
web ; the tubes
|
||||
;;web ; the tubes
|
||||
;;yaml ; JSON, but readable
|
||||
;;zig ; C, but simpler
|
||||
|
||||
:email
|
||||
(mu4e +gmail)
|
||||
(mu4e +org +gmail)
|
||||
;;notmuch
|
||||
;;(wanderlust +gmail)
|
||||
|
||||
:app
|
||||
calendar
|
||||
;;emms
|
||||
;;everywhere ; *leave* Emacs!? You must be joking
|
||||
;;irc ; how neckbeards socialize
|
||||
;;(rss +org) ; emacs as an RSS reader
|
||||
;;twitter ; twitter client https://twitter.com/vnought
|
||||
twitter ; twitter client https://twitter.com/vnought
|
||||
|
||||
:config
|
||||
;;literate
|
||||
(default +bindings +smartparens))
|
||||
(python +lsp)
|
||||
|
||||
@@ -48,8 +48,13 @@
|
||||
;(unpin! pinned-package another-pinned-package)
|
||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||
;(unpin! t)
|
||||
(package! wakatime-mode)
|
||||
(package! company-tabnine :recipe (:host github :repo "TommyX12/company-tabnine"))
|
||||
(package! org-bullets)
|
||||
(package! markdown-mode)
|
||||
(package! auto-complete)
|
||||
(package! mozc)
|
||||
|
||||
(package! wakatime-mode)
|
||||
|
||||
(package! py-isort)
|
||||
(package! python-pytest)
|
||||
(package! ein)
|
||||
(package! python-docstring)
|
||||
(package! py-autopep8)
|
||||
|
||||
Reference in New Issue
Block a user