From 53b35ee1f8288b4dcee17d99fcdd13ce2e359b5c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 26 Oct 2020 18:38:17 -0500 Subject: Add y-or-n-p alias --- config.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.org b/config.org index 8839462..0bd34e9 100644 --- a/config.org +++ b/config.org @@ -248,6 +248,10 @@ I don't like the customize interface, but I still sometimes use it when I'm not #+BEGIN_SRC emacs-lisp (cuss disabled-command-function nil) #+END_SRC +**** Function aliases +#+begin_src emacs-lisp + (fset 'yes-or-no-p #'y-or-n-p) +#+end_src ** Themes: [[https://github.com/protesilaos/modus-themes][Modus]] #+BEGIN_SRC emacs-lisp (use-package modus-operandi-theme) -- cgit 1.4.1-21-gabe81 From 5f12a56049dcf8e8d1a28dd388c5077fd7f17fca Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 26 Oct 2020 18:38:47 -0500 Subject: Display addons --- config.org | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 0bd34e9..a5dca94 100644 --- a/config.org +++ b/config.org @@ -252,6 +252,13 @@ I don't like the customize interface, but I still sometimes use it when I'm not #+begin_src emacs-lisp (fset 'yes-or-no-p #'y-or-n-p) #+end_src +*** Miscellaneous +**** Convert =^L= to a line +#+begin_src emacs-lisp + (use-package page-break-lines + :config + (global-page-break-lines-mode 1)) +#+end_src ** Themes: [[https://github.com/protesilaos/modus-themes][Modus]] #+BEGIN_SRC emacs-lisp (use-package modus-operandi-theme) @@ -305,7 +312,31 @@ I'm sure there's a better way to do this, but for now, this is the best I've got :family "VariablePitch" :height 110) #+END_SRC - +*** Ligatures +#+begin_src emacs-lisp + (use-package ligature + :straight (ligature + :host github + :repo "mickeynp/ligature.el") + :config + (ligature-set-ligatures 'prog-mode + '("++" "--" "/=" "&&" "||" "||=" + "->" "=>" "::" "__" + "==" "===" "!=" "=/=" "!==" + "<=" ">=" "<=>" + "/*" "*/" "//" "///" + "\\n" "\\\\" + "<<" "<<<" "<<=" ">>" ">>>" ">>=" + "|=" "^=" + "**" "--" "---" "----" "-----" + "==" "===" "====" "=====" + "" "-->" "/>" + ":=" "..." ":>" ":<" ">:" "<:" + "::=" ;; add others here + )) + :config + (global-ligature-mode)) +#+end_src *** [[https://github.com/rolandwalker/unicode-fonts][Unicode fonts]] #+BEGIN_SRC emacs-lisp (use-package persistent-soft) -- cgit 1.4.1-21-gabe81 From 722ff8b5edf84618b1e003a49619889f413bafb6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 26 Oct 2020 18:38:55 -0500 Subject: Remove y-or-n-p from this section --- config.org | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config.org b/config.org index a5dca94..b7c7ae2 100644 --- a/config.org +++ b/config.org @@ -347,10 +347,6 @@ I'm sure there's a better way to do this, but for now, this is the best I've got (unicode-fonts-setup)) #+END_SRC -** Interactivity -#+begin_src emacs-lisp - (fset 'yes-or-no-p #'y-or-n-p) -#+end_src * Editing ** Completion I was using company, but I think it might've been causing issues with ~awk-mode~, so I'm trying ~hippie-mode~ right now. So far, I'm also enjoying not having a popup all the time. -- cgit 1.4.1-21-gabe81 From 95c7f0e7840266f8ad5a9b90dff36e475f6a7e34 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 26 Oct 2020 18:39:12 -0500 Subject: Add org-mode config --- config.org | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/config.org b/config.org index b7c7ae2..5b4cf03 100644 --- a/config.org +++ b/config.org @@ -561,6 +561,33 @@ I was using company, but I think it might've been causing issues with ~awk-mode~ ("\\.js\\'" . web-mode))) #+END_SRC * Writing +** Org mode +#+begin_src emacs-lisp + (use-package org + :custom + (org-startup-indented t) + (org-src-tab-acts-natively t) + (org-hide-emphasis-markers t) + (org-fontify-done-headline t) + (org-hide-leading-stars t) + (org-pretty-entities t) + :hook + (org-mode . variable-pitch-mode)) + + (use-package org-superstar + :hook + (org-mode . org-superstar-mode)) +#+end_src +** Visual fill column +#+begin_src emacs-lisp + (use-package visual-fill-column + :custom + (split-window-preferred-function 'visual-fill-column-split-window-sensibly) + (visual-fill-column-center-text t) + :config + (advice-add 'text-scale-adjust + :after #'visual-fill-column-adjust)) +#+end_src * Applications ** Gemini & Gopher #+BEGIN_SRC emacs-lisp @@ -592,3 +619,19 @@ I was using company, but I think it might've been causing issues with ~awk-mode~ :custom (0x0-default-service 'ttm)) #+END_SRC +* Machine-specific configurations +#+begin_src emacs-lisp + (cond + (*acdw/at-home* + (use-package su + :config + (su-mode 1)) + (use-package trashed + :custom + (delete-by-moving-to-trash t)) + (use-package exec-path-from-shell + :demand + :config + (exec-path-from-shell-initialize))) + ) +#+end_src -- cgit 1.4.1-21-gabe81 From e0349b2479b378be2939e46b5480f521f5aefce0 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 26 Oct 2020 18:47:17 -0500 Subject: Add visual fill column to org-mode --- config.org | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/config.org b/config.org index 5b4cf03..8d55128 100644 --- a/config.org +++ b/config.org @@ -561,6 +561,19 @@ I was using company, but I think it might've been causing issues with ~awk-mode~ ("\\.js\\'" . web-mode))) #+END_SRC * Writing +** Visual fill column +#+begin_src emacs-lisp + (use-package visual-fill-column + :custom + (split-window-preferred-function 'visual-fill-column-split-window-sensibly) + (visual-fill-column-center-text t) + (fill-column 100) + :config + (advice-add 'text-scale-adjust + :after #'visual-fill-column-adjust) + :hook + (org-mode . visual-fill-column-mode)) +#+end_src ** Org mode #+begin_src emacs-lisp (use-package org @@ -578,16 +591,7 @@ I was using company, but I think it might've been causing issues with ~awk-mode~ :hook (org-mode . org-superstar-mode)) #+end_src -** Visual fill column -#+begin_src emacs-lisp - (use-package visual-fill-column - :custom - (split-window-preferred-function 'visual-fill-column-split-window-sensibly) - (visual-fill-column-center-text t) - :config - (advice-add 'text-scale-adjust - :after #'visual-fill-column-adjust)) -#+end_src + * Applications ** Gemini & Gopher #+BEGIN_SRC emacs-lisp -- cgit 1.4.1-21-gabe81