config before deleting eglot
This commit is contained in:
@@ -423,7 +423,7 @@ the description. This may destroy existing links, or change their targets so use
|
|||||||
|
|
||||||
(add-to-list
|
(add-to-list
|
||||||
'eglot-server-programs
|
'eglot-server-programs
|
||||||
'(elixir-mode . ("sh" "/opt/homebrew/bin/elixir-ls")))
|
'(elixir-mode . ("sh" "/Users/willem/.elixir-ls/release/language_server.sh" )))
|
||||||
|
|
||||||
(add-hook
|
(add-hook
|
||||||
'elixir-mode-hook
|
'elixir-mode-hook
|
||||||
@@ -435,3 +435,5 @@ the description. This may destroy existing links, or change their targets so use
|
|||||||
(add-hook 'before-save-hook 'eglot-format nil t)
|
(add-hook 'before-save-hook 'eglot-format nil t)
|
||||||
))
|
))
|
||||||
(setq inf-elixir-project-command "iex -S mix phx.server")
|
(setq inf-elixir-project-command "iex -S mix phx.server")
|
||||||
|
|
||||||
|
(setq rmh-elfeed-org-files (list "~/.doom.d/elfeed.org"))
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
'(ansi-color-names-vector
|
'(ansi-color-names-vector
|
||||||
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
||||||
'(custom-safe-themes
|
'(custom-safe-themes
|
||||||
'("636b135e4b7c86ac41375da39ade929e2bd6439de8901f53f88fde7dd5ac3561" "cf922a7a5c514fad79c483048257c5d8f242b21987af0db813d3f0b138dfaf53" "1d5e33500bc9548f800f9e248b57d1b2a9ecde79cb40c0b1398dec51ee820daf" "4f1d2476c290eaa5d9ab9d13b60f2c0f1c8fa7703596fa91b235db7f99a9441b" default))
|
'("a138ec18a6b926ea9d66e61aac28f5ce99739cf38566876dc31e29ec8757f6e2" "636b135e4b7c86ac41375da39ade929e2bd6439de8901f53f88fde7dd5ac3561" "cf922a7a5c514fad79c483048257c5d8f242b21987af0db813d3f0b138dfaf53" "1d5e33500bc9548f800f9e248b57d1b2a9ecde79cb40c0b1398dec51ee820daf" "4f1d2476c290eaa5d9ab9d13b60f2c0f1c8fa7703596fa91b235db7f99a9441b" default))
|
||||||
|
'(elfeed-feeds
|
||||||
|
'("https://www.htmhell.dev/feed_tips.xml" "https://www.drcathicks.com/blog-feed.xml" "https://pluralistic.net/feed/" "https://www.qwan.eu/feed.xml"))
|
||||||
'(exwm-floating-border-color "#191b20")
|
'(exwm-floating-border-color "#191b20")
|
||||||
'(fci-rule-color "#5B6268")
|
'(fci-rule-color "#5B6268")
|
||||||
'(highlight-tail-colors
|
'(highlight-tail-colors
|
||||||
|
|||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#+title: Elfeed
|
||||||
|
|
||||||
|
* Blogs :elfeed:
|
||||||
|
** entry-title: \(linux\|linus\|ubuntu\|kde\|gnome\) :linux:
|
||||||
|
** http://git-annex.branchable.com/design/assistant/blog/index.rss :mustread:
|
||||||
|
** http://feeds.feedburner.com/InformationIsBeautiful
|
||||||
|
** [[http://orgmode.org][Org Mode Links supported as well]]
|
||||||
|
** Software Development :dev:
|
||||||
|
*** Emacs :emacs:mustread:
|
||||||
|
**** http://www.terminally-incoherent.com/blog/feed
|
||||||
|
**** http://nullprogram.com/feed
|
||||||
|
**** entry-title: \(emacs\|org-mode\)
|
||||||
|
**** http://planet.emacsen.org/atom.xml
|
||||||
|
**** [[toobnix:154][EmacsConf]]
|
||||||
|
*** Web Development :web:
|
||||||
|
**** http://planet.phpunit.de/atom.xml
|
||||||
|
**** http://feeds.feedburner.com/symfony/blog
|
||||||
|
**** http://feeds.feedburner.com/qooxdoo/blog/content
|
||||||
|
*** Eclipse :eclipse:
|
||||||
|
**** http://blog.eclipse-tips.com/feeds/posts/default?alt=rss
|
||||||
|
**** http://ed-merks.blogspot.com/feeds/posts/default
|
||||||
|
A description of a feed can be written under any headline.
|
||||||
|
The text will be ignored by elfeed.
|
||||||
|
**** http://feeds.feedburner.com/eclipselive :ignore:
|
||||||
|
**** http://www.fosslc.org/drupal/rss.xml :video:
|
||||||
|
#+link: toobnix https://toobnix.org/feeds/videos.xml?videoChannelId=
|
||||||
|
|
||||||
|
** Willem
|
||||||
@@ -36,33 +36,33 @@
|
|||||||
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||||
(emoji +unicode) ; 🙂
|
(emoji +unicode) ; 🙂
|
||||||
;;fill-column ; a `fill-column' indicator
|
;;fill-column ; a `fill-column' indicator
|
||||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
;; hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;hydra
|
;;hydra
|
||||||
;;indent-guides ; highlighted indent columns
|
;;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
|
;;minimap ; show a map of the code on the side
|
||||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
;; modeline ; snazzy, Atom-inspired modeline, plus API
|
||||||
;;nav-flash ; blink cursor line after big motions
|
;;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
|
;; ophints ; highlight the region an operation acts on
|
||||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
;; (popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||||
;;tabs ; a tab bar for Emacs
|
;;tabs ; a tab bar for Emacs
|
||||||
;;treemacs ; a project drawer, like neotree but cooler
|
;;treemacs ; a project drawer, like neotree but cooler
|
||||||
;;unicode ; extended unicode support for various languages
|
;;unicode ; extended unicode support for various languages
|
||||||
vc-gutter ; vcs diff in the fringe
|
;; vc-gutter ; vcs diff in the fringe
|
||||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
;; vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||||
;;window-select ; visually switch windows
|
;;window-select ; visually switch windows
|
||||||
workspaces ; tab emulation, persistence & separate workspaces
|
;; workspaces ; tab emulation, persistence & separate workspaces
|
||||||
;;zen ; distraction-free coding or writing
|
;;zen ; distraction-free coding or writing
|
||||||
|
|
||||||
:editor
|
:editor
|
||||||
(evil +everywhere); come to the dark side, we have cookies
|
(evil); come to the dark side, we have cookies
|
||||||
file-templates ; auto-snippets for empty f#[warn(dead_code)]iles
|
;; file-templates ; auto-snippets for empty f#[warn(dead_code)]iles
|
||||||
fold ; (nigh) universal code folding
|
;; fold ; (nigh) universal code folding
|
||||||
;;(format +onsave) ; automated prettiness
|
;;(format +onsave) ; automated prettiness
|
||||||
;;god ; run Emacs commands without modifier keys
|
;;god ; run Emacs commands without modifier keys
|
||||||
;;lispy ; vim for lisp, for people who don't like vim
|
;;lispy ; vim for lisp, for people who don't like vim
|
||||||
;;multiple-cursors ; editing in many places at once
|
;; multiple-cursors ; editing in many places at once
|
||||||
;;objed ; text object editing for the innocent
|
;;objed ; text object editing for the innocent
|
||||||
;;parinfer ; turn lisp into python, sort of
|
;;parinfer ; turn lisp into python, sort of
|
||||||
;;rotate-text ; cycle region at point between text candidates
|
;;rotate-text ; cycle region at point between text candidates
|
||||||
@@ -70,34 +70,34 @@
|
|||||||
;;word-wrap ; soft wrapping with language-aware indent
|
;;word-wrap ; soft wrapping with language-aware indent
|
||||||
|
|
||||||
:emacs
|
:emacs
|
||||||
dired ; making dired pretty [functional]
|
;; dired ; making dired pretty [functional]
|
||||||
electric ; smarter, keyword-based electric-indent
|
;; electric ; smarter, keyword-based electric-indent
|
||||||
;;ibuffer ; interactive buffer management
|
;;ibuffer ; interactive buffer management
|
||||||
;; undo ; persistent, smarter undo for your inevitable mistakes
|
;; undo ; persistent, smarter undo for your inevitable mistakes
|
||||||
vc ; version-control and Emacs, sitting in a tree
|
;; vc ; version-control and Emacs, sitting in a tree
|
||||||
|
|
||||||
:term
|
:term
|
||||||
;;eshell ; the elisp shell that works everywhere
|
;;eshell ; the elisp shell that works everywhere
|
||||||
;;shell ; simple shell REPL for Emacs
|
;;shell ; simple shell REPL for Emacs
|
||||||
;;term ; basic terminal emulator for Emacs
|
;;term ; basic terminal emulator for Emacs
|
||||||
vterm ; the best terminal emulation in Emacs
|
;; vterm ; the best terminal emulation in Emacs
|
||||||
|
|
||||||
:checkers
|
:checkers
|
||||||
syntax ; tasing you for every semicolon you forget
|
syntax ; tasing you for every semicolon you forget
|
||||||
;;spell ; tasing you for misspelling mispelling
|
;;spell ; tasing you for misspelling mispelling
|
||||||
;;grammar ; tasing grammar mistake every you make
|
;;grammar ; tasing grammar mistake every you makom
|
||||||
|
|
||||||
:tools
|
:tools
|
||||||
;;ansible
|
;;ansible
|
||||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||||
;;direnv
|
;;direnv
|
||||||
docker
|
;; docker
|
||||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||||
;;ein ; tame Jupyter notebooks with emacs
|
;;ein ; tame Jupyter notebooks with emacs
|
||||||
(eval +overlay) ; run code, run (also, repls)
|
;; (eval +overlay) ; run code, run (also, repls)
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
(lookup -org) ; navigate your code and its documentation
|
;; (lookup -org) ; navigate your code and its documentation
|
||||||
(lsp +peek)
|
(lsp +peek) ;; +peek removed for now
|
||||||
(magit -gitflow) ; a git porcelain for Emacs
|
(magit -gitflow) ; a git porcelain for Emacs
|
||||||
;;make ; run make tasks from Emacs
|
;;make ; run make tasks from Emacs
|
||||||
;;pass ; password manager for nerds
|
;;pass ; password manager for nerds
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
;;csharp ; unity, .NET, and mono shenanigans
|
;;csharp ; unity, .NET, and mono shenanigans
|
||||||
;;data ; config/data formats
|
;;data ; config/data formats
|
||||||
;;(dart +flutter) ; paint ui and not much else
|
;;(dart +flutter) ; paint ui and not much else
|
||||||
elixir ; erlang done right
|
(elixir +lsp) ; erlang done right
|
||||||
;;elm ; care for a cup of TEA?
|
;;elm ; care for a cup of TEA?
|
||||||
emacs-lisp ; drown in parentheses
|
emacs-lisp ; drown in parentheses
|
||||||
;;erlang ; an elegant language for a more civilized age
|
;;erlang ; an elegant language for a more civilized age
|
||||||
@@ -136,9 +136,9 @@
|
|||||||
;;(haskell +dante) ; a language that's lazier than I am
|
;;(haskell +dante) ; a language that's lazier than I am
|
||||||
;;hy ; readability of scheme w/ speed of python
|
;;hy ; readability of scheme w/ speed of python
|
||||||
;;idris ; a language you can depend on
|
;;idris ; a language you can depend on
|
||||||
json ; At least it ain't XML
|
;; json ; At least it ain't XML
|
||||||
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
||||||
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
;; javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||||
;;julia ; a better, faster MATLAB
|
;;julia ; a better, faster MATLAB
|
||||||
;;kotlin ; a better, slicker Java(Script)
|
;;kotlin ; a better, slicker Java(Script)
|
||||||
;;latex ; writing papers in Emacs has never been so fun
|
;;latex ; writing papers in Emacs has never been so fun
|
||||||
@@ -152,8 +152,8 @@
|
|||||||
;;ocaml ; an objective camel
|
;;ocaml ; an objective camel
|
||||||
(org +pomodoro +gnuplot +pretty +roam2 +download-dnd) ; organize your plain life in plain text
|
(org +pomodoro +gnuplot +pretty +roam2 +download-dnd) ; organize your plain life in plain text
|
||||||
;;php ; perl's insecure younger brother
|
;;php ; perl's insecure younger brother
|
||||||
plantuml ; diagrams for confusing people more
|
;; plantuml ; diagrams for confusing people more
|
||||||
purescript ; javascript, but functional
|
;; purescript ; javascript, but functional
|
||||||
;;python ; beautiful is better than ugly
|
;;python ; beautiful is better than ugly
|
||||||
;;qt ; the 'cutest' gui framework ever
|
;;qt ; the 'cutest' gui framework ever
|
||||||
;;racket ; a DSL for DSLs
|
;;racket ; a DSL for DSLs
|
||||||
@@ -161,7 +161,7 @@
|
|||||||
;;rest ; Emacs as a REST client
|
;;rest ; Emacs as a REST client
|
||||||
;;rst ; ReST in peace
|
;;rst ; ReST in peace
|
||||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||||
(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
;; (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||||
;;scala ; java, but good
|
;;scala ; java, but good
|
||||||
;;scheme ; a fully conniving family of lisps
|
;;scheme ; a fully conniving family of lisps
|
||||||
;; typescript
|
;; typescript
|
||||||
@@ -181,7 +181,7 @@
|
|||||||
:app
|
:app
|
||||||
;;calendar
|
;;calendar
|
||||||
;;irc ; how neckbeards socialize
|
;;irc ; how neckbeards socialize
|
||||||
;;(rss +org) ; emacs as an RSS reader
|
;; rss ; emacs as an RSS reader
|
||||||
;;twitter ; twitter client https://twitter.com/vnought
|
;;twitter ; twitter client https://twitter.com/vnought
|
||||||
|
|
||||||
:config
|
:config
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
(ert-deftest test-replace-hours-ago-regexp-in-string ()
|
(ert-deftest test-replace-hours-ago-regexp-in-string ()
|
||||||
(should (string=
|
(should (string=
|
||||||
(replace-regexp-in-string "[0-9]+ hours ago" "" "space 11 hours ago")
|
(replace-regexp-in-string "\n\s+[0-9]+ hours ago\s*\n" "|" "\n 11 hours ago \n")
|
||||||
"")))
|
"|")))
|
||||||
|
|
||||||
(ert 'test-replace-regexp-in-string )
|
(ert 'test-replace-hours-ago-regexp-in-string )
|
||||||
;;(ert 'test-chat-remove-hours-ago )
|
;;(ert 'test-chat-remove-hours-ago )
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
(package! exunit)
|
(package! exunit)
|
||||||
(package! inf-elixir)
|
(package! inf-elixir)
|
||||||
|
|
||||||
|
|
||||||
;; craft of emacs
|
;; craft of emacs
|
||||||
|
|
||||||
;; To install a package directly from a remote git repo, you must specify a
|
;; To install a package directly from a remote git repo, you must specify a
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# key: ecto-seed
|
||||||
|
# name: Ecto seed table
|
||||||
|
# --
|
||||||
|
alias ${1:App}.${2:Context}
|
||||||
|
|
||||||
|
${3:instance}s = [
|
||||||
|
%{name: "Chess", description: "The classic strategy game", sku: 5_678_910, unit_price: 10.00},
|
||||||
|
%{
|
||||||
|
name: "Tic-Tac-Toe",
|
||||||
|
description: "The game of Xs and Os",
|
||||||
|
sku: 11_121_314,
|
||||||
|
unit_price: 3.00
|
||||||
|
},
|
||||||
|
%{
|
||||||
|
name: "Table tennis",
|
||||||
|
description: "Bat the ball bck and forth. Don't miss!",
|
||||||
|
sku: 15_222_324,
|
||||||
|
unit_price: 12.00
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
Enum.each($3s, fn $3->
|
||||||
|
$2.create_$3($3)
|
||||||
|
end)
|
||||||
|
|
||||||
|
$0
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: alter table migration
|
||||||
|
# key: alter-table
|
||||||
|
# --
|
||||||
|
|
||||||
|
alter table(:$1) do
|
||||||
|
add :$2, :$3
|
||||||
|
$0
|
||||||
|
end
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# key: simple-form
|
||||||
|
# name: simple form
|
||||||
|
# --
|
||||||
|
<.simple_form>
|
||||||
|
:let={f}
|
||||||
|
for={@$1}
|
||||||
|
id="$2-form"
|
||||||
|
phx-change="validate"
|
||||||
|
phx-submit="save">
|
||||||
|
<.input field={@$1[:$3]} type="$4" label="$5" />
|
||||||
|
$0
|
||||||
|
<:actions>
|
||||||
|
<.button phx-disable-with="$6...">$7</.button>
|
||||||
|
</:actions>
|
||||||
|
</.simple_form>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# key: test-module
|
||||||
|
# name: test module
|
||||||
|
# condition: t
|
||||||
|
# --
|
||||||
|
defmodule $1.$2 do
|
||||||
|
import $3
|
||||||
|
use Pento.DataCase
|
||||||
|
|
||||||
|
describe "$3" do
|
||||||
|
test "$4" do
|
||||||
|
$0
|
||||||
|
assert false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
# key: thenewtype
|
||||||
|
# name: new purescript newtype in its' own module
|
||||||
|
# --
|
||||||
|
# in 'text-mode' because purescript-mode generates parse error
|
||||||
|
module ${1:ModulePrefix}.${2:NewTypeName} (
|
||||||
|
$2(..)
|
||||||
|
, aDummy
|
||||||
|
) where
|
||||||
|
|
||||||
|
import Data.Firebase.Foreign (class ToFirebaseForeign)
|
||||||
|
import Data.Foreign (toForeign, readString)
|
||||||
|
import Data.Foreign.Class (class IsForeign)
|
||||||
|
import Data.Generic (class Generic, gCompare, gEq, gShow)
|
||||||
|
import Test.QuickCheck.Arbitrary (class Arbitrary, arbitrary)
|
||||||
|
import Prelude (class Eq, class Ord, class Show, ($),bind, pure)
|
||||||
|
import UReview.Prelude (readForeign)
|
||||||
|
|
||||||
|
newtype $2 = $2 {${4:fieldName}:: ${5:Type}}
|
||||||
|
|
||||||
|
aDummy :: $2
|
||||||
|
aDummy = $2 {$4: "$6"}
|
||||||
|
derive instance generic$2 :: Generic $2
|
||||||
|
|
||||||
|
instance show$2 :: Show $2 where
|
||||||
|
show = gShow
|
||||||
|
|
||||||
|
instance eq$2 :: Eq $2 where
|
||||||
|
eq = gEq
|
||||||
|
|
||||||
|
instance ord$2 :: Ord $2 where
|
||||||
|
compare = gCompare
|
||||||
|
|
||||||
|
instance arb$2 :: Arbitrary $2 where
|
||||||
|
arbitrary = do
|
||||||
|
$4 <- arbitrary
|
||||||
|
pure ($2 {$4 })
|
||||||
|
|
||||||
|
instance isForeign$2 :: IsForeign $2 where
|
||||||
|
read fo = readForeign fo
|
||||||
|
|
||||||
|
instance toFirebaseForeign$2 :: ToFirebaseForeign $2
|
||||||
|
where toFire = ${7:conversionFn} >>> toForeign
|
||||||
|
|
||||||
|
$0
|
||||||
Reference in New Issue
Block a user