diff --git a/config.el b/config.el index 7fddbe5..1b54410 100644 --- a/config.el +++ b/config.el @@ -423,7 +423,7 @@ the description. This may destroy existing links, or change their targets so use (add-to-list 'eglot-server-programs - '(elixir-mode . ("sh" "/opt/homebrew/bin/elixir-ls"))) + '(elixir-mode . ("sh" "/Users/willem/.elixir-ls/release/language_server.sh" ))) (add-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) )) (setq inf-elixir-project-command "iex -S mix phx.server") + +(setq rmh-elfeed-org-files (list "~/.doom.d/elfeed.org")) diff --git a/custom.el b/custom.el index 7b495f5..48ff8bd 100644 --- a/custom.el +++ b/custom.el @@ -6,7 +6,9 @@ '(ansi-color-names-vector ["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"]) '(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") '(fci-rule-color "#5B6268") '(highlight-tail-colors diff --git a/elfeed.org b/elfeed.org new file mode 100644 index 0000000..3d41e26 --- /dev/null +++ b/elfeed.org @@ -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 diff --git a/init.el b/init.el index cf33e09..2282a47 100644 --- a/init.el +++ b/init.el @@ -36,33 +36,33 @@ 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 + ;; 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 ;;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 - neotree ; a project drawer, like NERDTree for vim - ophints ; highlight the region an operation acts on - (popup +defaults) ; tame sudden yet inevitable temporary windows + ;; 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 ;;treemacs ; a project drawer, like neotree but cooler ;;unicode ; extended unicode support for various languages - vc-gutter ; vcs diff in the fringe - vi-tilde-fringe ; fringe tildes to mark beyond EOB + ;; vc-gutter ; vcs diff in the fringe + ;; vi-tilde-fringe ; fringe tildes to mark beyond EOB ;;window-select ; visually switch windows - workspaces ; tab emulation, persistence & separate workspaces + ;; workspaces ; tab emulation, persistence & separate workspaces ;;zen ; distraction-free coding or writing :editor - (evil +everywhere); come to the dark side, we have cookies - file-templates ; auto-snippets for empty f#[warn(dead_code)]iles - fold ; (nigh) universal code folding + (evil); come to the dark side, we have cookies + ;; file-templates ; auto-snippets for empty f#[warn(dead_code)]iles + ;; fold ; (nigh) universal code folding ;;(format +onsave) ; automated prettiness ;;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 + ;; multiple-cursors ; editing in many places at once ;;objed ; text object editing for the innocent ;;parinfer ; turn lisp into python, sort of ;;rotate-text ; cycle region at point between text candidates @@ -70,34 +70,34 @@ ;;word-wrap ; soft wrapping with language-aware indent :emacs - dired ; making dired pretty [functional] - electric ; smarter, keyword-based electric-indent + ;; dired ; making dired pretty [functional] + ;; electric ; smarter, keyword-based electric-indent ;;ibuffer ; interactive buffer management ;; 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 ;;eshell ; the elisp shell that works everywhere ;;shell ; simple shell REPL for Emacs ;;term ; basic terminal emulator for Emacs - vterm ; the best terminal emulation in Emacs + ;; vterm ; the best terminal emulation in Emacs :checkers syntax ; tasing you for every semicolon you forget ;;spell ; tasing you for misspelling mispelling - ;;grammar ; tasing grammar mistake every you make + ;;grammar ; tasing grammar mistake every you makom :tools ;;ansible ;;debugger ; FIXME stepping through code, to help you add bugs ;;direnv - docker + ;; docker ;;editorconfig ; let someone else argue about tabs vs spaces ;;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 - (lookup -org) ; navigate your code and its documentation - (lsp +peek) + ;; (lookup -org) ; navigate your code and its documentation + (lsp +peek) ;; +peek removed for now (magit -gitflow) ; a git porcelain for Emacs ;;make ; run make tasks from Emacs ;;pass ; password manager for nerds @@ -123,7 +123,7 @@ ;;csharp ; unity, .NET, and mono shenanigans ;;data ; config/data formats ;;(dart +flutter) ; paint ui and not much else - elixir ; erlang done right + (elixir +lsp) ; erlang done right ;;elm ; care for a cup of TEA? emacs-lisp ; drown in parentheses ;;erlang ; an elegant language for a more civilized age @@ -136,9 +136,9 @@ ;;(haskell +dante) ; 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 + ;; json ; At least it ain't XML ;;(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 ;;kotlin ; a better, slicker Java(Script) ;;latex ; writing papers in Emacs has never been so fun @@ -152,8 +152,8 @@ ;;ocaml ; an objective camel (org +pomodoro +gnuplot +pretty +roam2 +download-dnd) ; organize your plain life in plain text ;;php ; perl's insecure younger brother - plantuml ; diagrams for confusing people more - purescript ; javascript, but functional + ;; plantuml ; diagrams for confusing people more + ;; purescript ; javascript, but functional ;;python ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs @@ -161,7 +161,7 @@ ;;rest ; Emacs as a REST client ;;rst ; ReST in peace ;;(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 ;;scheme ; a fully conniving family of lisps ;; typescript @@ -181,7 +181,7 @@ :app ;;calendar ;;irc ; how neckbeards socialize - ;;(rss +org) ; emacs as an RSS reader + ;; rss ; emacs as an RSS reader ;;twitter ; twitter client https://twitter.com/vnought :config diff --git a/mostalive/convert-chats-to-org.el b/mostalive/convert-chats-to-org.el index 4853097..a8f565a 100644 --- a/mostalive/convert-chats-to-org.el +++ b/mostalive/convert-chats-to-org.el @@ -21,8 +21,8 @@ (ert-deftest test-replace-hours-ago-regexp-in-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 ) diff --git a/packages.el b/packages.el index 2d3201c..2eb2b5d 100644 --- a/packages.el +++ b/packages.el @@ -22,6 +22,7 @@ (package! exunit) (package! inf-elixir) + ;; craft of emacs ;; To install a package directly from a remote git repo, you must specify a diff --git a/snippets/elixir-mode/Ecto seed table b/snippets/elixir-mode/Ecto seed table new file mode 100644 index 0000000..9072330 --- /dev/null +++ b/snippets/elixir-mode/Ecto seed table @@ -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 \ No newline at end of file diff --git a/snippets/elixir-mode/alter table migration b/snippets/elixir-mode/alter table migration new file mode 100644 index 0000000..8748d61 --- /dev/null +++ b/snippets/elixir-mode/alter table migration @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: alter table migration +# key: alter-table +# -- + +alter table(:$1) do + add :$2, :$3 + $0 +end \ No newline at end of file diff --git a/snippets/elixir-mode/simple form b/snippets/elixir-mode/simple form new file mode 100644 index 0000000..29f686b --- /dev/null +++ b/snippets/elixir-mode/simple form @@ -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 + + diff --git a/snippets/elixir-mode/test module b/snippets/elixir-mode/test module new file mode 100644 index 0000000..90989b1 --- /dev/null +++ b/snippets/elixir-mode/test module @@ -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 diff --git a/snippets/text-mode/newtype b/snippets/text-mode/newtype new file mode 100644 index 0000000..8b72313 --- /dev/null +++ b/snippets/text-mode/newtype @@ -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 \ No newline at end of file