Compare commits

..

No commits in common. "d8cab4e76630a699e4f4b8c00c176437cf70b48c" and "0e8ba5b408b235d8244ce047217d86289c71e630" have entirely different histories.

14 changed files with 124 additions and 302 deletions

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
(global-set-key [C-tab] #'other-window) (global-set-key [C-tab] #'other-window)
(global-set-key [C-S-tab] #'sother-window) (global-set-key [C-S-tab] #'sother-window)
(global-set-key [C-iso-lefttab] #'sother-window) (global-set-key [C-iso-lefttab] #'sother-window)
@ -16,11 +15,4 @@
// //
//-************************************************************************") //-************************************************************************")
(use-package restclient
:ensure t)
(use-package restclient-jq
:ensure t)
(elpaca (1password :host github :repo "kamushadenes/1password.el")
(use-package 1password))
(provide 'nebkor-personal) (provide 'nebkor-personal)

View file

@ -28,8 +28,7 @@
'("nebkor-modules" "custom-lisp")) '("nebkor-modules" "custom-lisp"))
;;; Install Elpaca ;;; Install Elpaca
(defvar elpaca-installer-version 0.9)
(defvar elpaca-installer-version 0.10)
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory)) (defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory)) (defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory)) (defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
@ -44,6 +43,7 @@
(add-to-list 'load-path (if (file-exists-p build) build repo)) (add-to-list 'load-path (if (file-exists-p build) build repo))
(unless (file-exists-p repo) (unless (file-exists-p repo)
(make-directory repo t) (make-directory repo t)
(when (< emacs-major-version 28) (require 'subr-x))
(condition-case-unless-debug err (condition-case-unless-debug err
(if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*")) (if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
((zerop (apply #'call-process `("git" nil ,buffer t "clone" ((zerop (apply #'call-process `("git" nil ,buffer t "clone"

View file

@ -61,7 +61,6 @@
- [[#the-nebkor-essentialsel-section-about-using-tree-sitter-for-marking-expreg][The =nebkor-essentials.el= section about using tree-sitter for marking (~expreg~)]] - [[#the-nebkor-essentialsel-section-about-using-tree-sitter-for-marking-expreg][The =nebkor-essentials.el= section about using tree-sitter for marking (~expreg~)]]
- [[#the-nebkor-essentialsel-section-for-osx-changes][The =nebkor-essentials.el= section for OSX changes]] - [[#the-nebkor-essentialsel-section-for-osx-changes][The =nebkor-essentials.el= section for OSX changes]]
- [[#the-nebkor-essentialsel-section-for-simpleel-changes][The =nebkor-essentials.el= section for ~simple.el~ changes]] - [[#the-nebkor-essentialsel-section-for-simpleel-changes][The =nebkor-essentials.el= section for ~simple.el~ changes]]
- [[#the-nebkor-essentialsel-section-for-better-help-helpful][The =nebkor-essentials.el= section for better help (~helpful~)]]
- [[#the-nebkor-essentials-section-for-indent-tools][The =nebkor-essentials= section for ~indent-tools~]] - [[#the-nebkor-essentials-section-for-indent-tools][The =nebkor-essentials= section for ~indent-tools~]]
- [[#the-nebkor-essentials-section-for-undo-tree][The =nebkor-essentials= section for ~undo-tree~]] - [[#the-nebkor-essentials-section-for-undo-tree][The =nebkor-essentials= section for ~undo-tree~]]
- [[#the-nebkor-essentials-section-for-fancy-keyboard-shortcuts-key-chord][The =nebkor-essentials= section for fancy keyboard shortcuts (~key-chord~)]] - [[#the-nebkor-essentials-section-for-fancy-keyboard-shortcuts-key-chord][The =nebkor-essentials= section for fancy keyboard shortcuts (~key-chord~)]]
@ -157,8 +156,6 @@
- [[#the-nebkor-langsel-section-for-ziglang-zig-mode][The =nebkor-langs.el= section for Ziglang (~zig-mode~)]] - [[#the-nebkor-langsel-section-for-ziglang-zig-mode][The =nebkor-langs.el= section for Ziglang (~zig-mode~)]]
- [[#the-nebkor-langsel-section-for-clojure-programming][The =nebkor-langs.el= section for Clojure programming]] - [[#the-nebkor-langsel-section-for-clojure-programming][The =nebkor-langs.el= section for Clojure programming]]
- [[#the-nebkor-langsel-section-for-scheme][The =nebkor-langs.el= section for Scheme]] - [[#the-nebkor-langsel-section-for-scheme][The =nebkor-langs.el= section for Scheme]]
- [[#the-nebkor-langsel-section-for-go][The =nebkor-langs.el= section for Go]]
- [[#the-nebkor-langsel-section-for-terrform][The =nebkor-langs.el= section for Terrform]]
- [[#the-nebkor-langsel-section-for-emacs-lisp][The =nebkor-langs.el= section for Emacs Lisp]] - [[#the-nebkor-langsel-section-for-emacs-lisp][The =nebkor-langs.el= section for Emacs Lisp]]
- [[#finally-we-provide-the-nebkor-langsel-module][Finally, we provide the =nebkor-langs.el= module]] - [[#finally-we-provide-the-nebkor-langsel-module][Finally, we provide the =nebkor-langs.el= module]]
- [[#the-nebkor-studyel-module][The =nebkor-study.el= module]] - [[#the-nebkor-studyel-module][The =nebkor-study.el= module]]
@ -216,8 +213,7 @@ be updated accordingly.
#+end_quote #+end_quote
#+begin_src emacs-lisp :tangle no :results none #+begin_src emacs-lisp :tangle no :results none
;; -*- lexical-binding: t; -*- (org-babel-tangle)
(org-babel-tangle)
#+end_src #+end_src
@ -499,9 +495,8 @@ When using ~elpaca~, here are some gotchas you should be aware of
assumptions about order of execution. assumptions about order of execution.
#+begin_src emacs-lisp :tangle "init.el" #+begin_src emacs-lisp :tangle "init.el"
;;; Install Elpaca ;;; Install Elpaca
(defvar elpaca-installer-version 0.9)
(defvar elpaca-installer-version 0.10)
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory)) (defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory)) (defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory)) (defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
@ -516,6 +511,7 @@ When using ~elpaca~, here are some gotchas you should be aware of
(add-to-list 'load-path (if (file-exists-p build) build repo)) (add-to-list 'load-path (if (file-exists-p build) build repo))
(unless (file-exists-p repo) (unless (file-exists-p repo)
(make-directory repo t) (make-directory repo t)
(when (< emacs-major-version 28) (require 'subr-x))
(condition-case-unless-debug err (condition-case-unless-debug err
(if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*")) (if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
((zerop (apply #'call-process `("git" nil ,buffer t "clone" ((zerop (apply #'call-process `("git" nil ,buffer t "clone"
@ -673,7 +669,6 @@ Now we are ready to load our per-module configuration files:
This module defines everything related to the aesthetics of Emacs. This module defines everything related to the aesthetics of Emacs.
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-theme.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-theme.el" :mkdirp yes
;; -*- lexical-binding: t; -*-
;;; Everything related to the look of Emacs ;;; Everything related to the look of Emacs
#+end_src #+end_src
@ -1016,7 +1011,6 @@ in the function ~prot/enable-variable-pitch~.
:END: :END:
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-essentials.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-essentials.el" :mkdirp yes
;; -*- lexical-binding: t; -*-
;;; Essential configurations ;;; Essential configurations
(use-package emacs (use-package emacs
:ensure nil :ensure nil
@ -1353,8 +1347,8 @@ These are modifications to basic configuration I use on my Mac OSX machine.
(process-send-string proc text) (process-send-string proc text)
(process-send-eof proc)))) (process-send-eof proc))))
;;(setq mac-command-modifier 'meta) (setq mac-command-modifier 'meta)
;;(setq mac-option-modifier 'alt) (setq mac-option-modifier 'alt)
(setq interprogram-cut-function #'paste-to-osx) (setq interprogram-cut-function #'paste-to-osx)
(setq interprogram-paste-function #'copy-from-osx) (setq interprogram-paste-function #'copy-from-osx)
;; Work around a bug on OS X where system-name is a fully qualified ;; Work around a bug on OS X where system-name is a fully qualified
@ -1398,22 +1392,6 @@ These are modifications to basic configuration I use on my Mac OSX machine.
(setq column-number-mode t)) (setq column-number-mode t))
#+end_src #+end_src
** The =nebkor-essentials.el= section for better help (~helpful~)
:PROPERTIES:
:CUSTOM_ID: h:ECAF81D8-4111-4C71-AB77-3C3D322B235F
:CREATED: [2024-12-02 Mon 09:50]
:ID: 01JGD333ED000CFWD9GWED35XD
:END:
Helpful is a package that improves the default Emacs *Help* buffer. I don't want to replace what
Emacs provides with default, and I find myself using Helpful only as an Avy action ([[#h:4E8593F7-C065-4DFA-B513-98602EC2BA1A][The
=nebkor-search.el= settings for ~avy~ (jumping)]]). However, it's really useful in that context.
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-essentials.el"
(use-package helpful
:ensure t)
#+end_src
** The =nebkor-essentials= section for ~indent-tools~ ** The =nebkor-essentials= section for ~indent-tools~
:PROPERTIES: :PROPERTIES:
:ID: 01JGD1ASTX0008J83XRB4TZW77 :ID: 01JGD1ASTX0008J83XRB4TZW77
@ -1572,74 +1550,73 @@ soon as I type a space after some characters I am using ~orderless~.
(There are more details in Prot's file, for the interested reader) (There are more details in Prot's file, for the interested reader)
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-completion.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-completion.el" :mkdirp yes
;; -*- lexical-binding: t; -*- ;;; General minibuffer settings
;;; General minibuffer settings (use-package minibuffer
(use-package minibuffer :ensure nil
:ensure nil :config
:config ;;;; Completion styles
;;;; Completion styles (setq completion-styles '(basic substring initials flex orderless)) ; also see `completion-category-overrides'
(setq completion-styles '(basic substring initials flex orderless)) ; also see `completion-category-overrides' (setq completion-pcm-leading-wildcard t) ; Emacs 31: make `partial-completion' behave like `substring'
(setq completion-pcm-leading-wildcard t) ; Emacs 31: make `partial-completion' behave like `substring'
;; Reset all the per-category defaults so that (i) we use the ;; Reset all the per-category defaults so that (i) we use the
;; standard `completion-styles' and (ii) can specify our own styles ;; standard `completion-styles' and (ii) can specify our own styles
;; in the `completion-category-overrides' without having to ;; in the `completion-category-overrides' without having to
;; explicitly override everything. ;; explicitly override everything.
(setq completion-category-defaults nil) (setq completion-category-defaults nil)
;; A non-exhaustve list of known completion categories: ;; A non-exhaustve list of known completion categories:
;; ;;
;; - `bookmark' ;; - `bookmark'
;; - `buffer' ;; - `buffer'
;; - `charset' ;; - `charset'
;; - `coding-system' ;; - `coding-system'
;; - `color' ;; - `color'
;; - `command' (e.g. `M-x') ;; - `command' (e.g. `M-x')
;; - `customize-group' ;; - `customize-group'
;; - `environment-variable' ;; - `environment-variable'
;; - `expression' ;; - `expression'
;; - `face' ;; - `face'
;; - `file' ;; - `file'
;; - `function' (the `describe-function' command bound to `C-h f') ;; - `function' (the `describe-function' command bound to `C-h f')
;; - `info-menu' ;; - `info-menu'
;; - `imenu' ;; - `imenu'
;; - `input-method' ;; - `input-method'
;; - `kill-ring' ;; - `kill-ring'
;; - `library' ;; - `library'
;; - `minor-mode' ;; - `minor-mode'
;; - `multi-category' ;; - `multi-category'
;; - `package' ;; - `package'
;; - `project-file' ;; - `project-file'
;; - `symbol' (the `describe-symbol' command bound to `C-h o') ;; - `symbol' (the `describe-symbol' command bound to `C-h o')
;; - `theme' ;; - `theme'
;; - `unicode-name' (the `insert-char' command bound to `C-x 8 RET') ;; - `unicode-name' (the `insert-char' command bound to `C-x 8 RET')
;; - `variable' (the `describe-variable' command bound to `C-h v') ;; - `variable' (the `describe-variable' command bound to `C-h v')
;; - `consult-grep' ;; - `consult-grep'
;; - `consult-isearch' ;; - `consult-isearch'
;; - `consult-kmacro' ;; - `consult-kmacro'
;; - `consult-location' ;; - `consult-location'
;; - `embark-keybinding' ;; - `embark-keybinding'
;; ;;
(setq completion-category-overrides (setq completion-category-overrides
;; NOTE 2021-10-25: I am adding `basic' because it works better as a ;; NOTE 2021-10-25: I am adding `basic' because it works better as a
;; default for some contexts. Read: ;; default for some contexts. Read:
;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50387>. ;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50387>.
;; ;;
;; `partial-completion' is a killer app for files, because it ;; `partial-completion' is a killer app for files, because it
;; can expand ~/.l/s/fo to ~/.local/share/fonts. ;; can expand ~/.l/s/fo to ~/.local/share/fonts.
;; ;;
;; If `basic' cannot match my current input, Emacs tries the ;; If `basic' cannot match my current input, Emacs tries the
;; next completion style in the given order. In other words, ;; next completion style in the given order. In other words,
;; `orderless' kicks in as soon as I input a space or one of its ;; `orderless' kicks in as soon as I input a space or one of its
;; style dispatcher characters. ;; style dispatcher characters.
'((file (styles . (basic partial-completion orderless))) '((file (styles . (basic partial-completion orderless)))
(bookmark (styles . (basic substring))) (bookmark (styles . (basic substring)))
(library (styles . (basic substring))) (library (styles . (basic substring)))
(embark-keybinding (styles . (basic substring))) (embark-keybinding (styles . (basic substring)))
(imenu (styles . (basic substring orderless))) (imenu (styles . (basic substring orderless)))
(consult-location (styles . (basic substring orderless))) (consult-location (styles . (basic substring orderless)))
(kill-ring (styles . (emacs22 orderless))) (kill-ring (styles . (emacs22 orderless)))
(eglot (styles . (emacs22 substring orderless)))))) (eglot (styles . (emacs22 substring orderless))))))
#+end_src #+end_src
** The =nebkor-completion.el= for the ~orderless~ completion style ** The =nebkor-completion.el= for the ~orderless~ completion style
@ -2240,7 +2217,6 @@ I use ~vertico-repeat~ to mimic the functionality that ~helm-resume~ would provi
My old custom functions file. My old custom functions file.
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-functions.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-functions.el" :mkdirp yes
;; -*- lexical-binding: t; -*-
(defun diff-and-set-modified-p () (defun diff-and-set-modified-p ()
"Diff the current buffer with its associated file and set buffer modified status." "Diff the current buffer with its associated file and set buffer modified status."
(let* ((tmpfile (diff-file-local-copy (current-buffer))) (let* ((tmpfile (diff-file-local-copy (current-buffer)))
@ -2314,20 +2290,6 @@ My old custom functions file.
(set-window-buffer-start-and-point w1 b2 s2 p2) (set-window-buffer-start-and-point w1 b2 s2 p2)
(set-window-buffer-start-and-point w2 b1 s1 p1))))))) (set-window-buffer-start-and-point w2 b1 s1 p1)))))))
(defun my-update-env (fn)
(let ((str
(with-temp-buffer
(insert-file-contents fn)
(buffer-string))) lst)
(setq lst (split-string str "\000"))
(while lst
(setq cur (car lst))
(when (string-match "^\\(.*?\\)=\\(.*\\)" cur)
(setq var (match-string 1 cur))
(setq value (match-string 2 cur))
(setenv var value))
(setq lst (cdr lst)))))
(provide 'nebkor-functions) (provide 'nebkor-functions)
#+end_src #+end_src
@ -2432,7 +2394,6 @@ Now on to the configurations.
tweak to ensure that ~consult-imenu~ returns good ~imenu~ results to us. tweak to ensure that ~consult-imenu~ returns good ~imenu~ results to us.
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-search.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-search.el" :mkdirp yes
;; -*- lexical-binding: t; -*-
(use-package imenu (use-package imenu
:ensure nil :ensure nil
:config :config
@ -2750,15 +2711,14 @@ them manually. I prefer this extra layer of safety. Plus, we have the
#+end_quote #+end_quote
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-dired.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-dired.el" :mkdirp yes
;; -*- lexical-binding: t; -*- ;;; Dired file manager and prot-dired.el extras
;;; Dired file manager and prot-dired.el extras (use-package dired
(use-package dired :ensure nil
:ensure nil :commands (dired)
:commands (dired) :config
:config (setq dired-recursive-copies 'always)
(setq dired-recursive-copies 'always) (setq dired-recursive-deletes 'always)
(setq dired-recursive-deletes 'always) (setq delete-by-moving-to-trash t))
(setq delete-by-moving-to-trash t))
#+end_src #+end_src
** The =nebkor-dired.el= switches for how files are listed (~ls~) ** The =nebkor-dired.el= switches for how files are listed (~ls~)
@ -3100,15 +3060,14 @@ name.
#+end_quote #+end_quote
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-window.el" #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-window.el"
;; -*- lexical-binding: t; -*- ;;; General window and buffer configurations
;;; General window and buffer configurations (use-package uniquify
(use-package uniquify :ensure nil
:ensure nil :config
:config ;;;; `uniquify' (unique names for buffers)
;;;; `uniquify' (unique names for buffers) (setq uniquify-buffer-name-style 'forward)
(setq uniquify-buffer-name-style 'forward) (setq uniquify-strip-common-suffix t)
(setq uniquify-strip-common-suffix t) (setq uniquify-after-kill-buffer-p t))
(setq uniquify-after-kill-buffer-p t))
#+end_src #+end_src
@ -3284,19 +3243,18 @@ integrates with ~magit~ ([[#h:b08af527-9ebf-4425-ac3a-24b4f371a4fd][The =nebkor-
#+end_quote #+end_quote
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-git.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-git.el" :mkdirp yes
;; -*- lexical-binding: t; -*- ;;;; `ediff'
;;;; `ediff' (use-package ediff
(use-package ediff :ensure nil
:ensure nil :commands (ediff-buffers ediff-files ediff-buffers3 ediff-files3)
:commands (ediff-buffers ediff-files ediff-buffers3 ediff-files3) :init
:init (setq ediff-split-window-function 'split-window-horizontally)
(setq ediff-split-window-function 'split-window-horizontally) (setq ediff-window-setup-function 'ediff-setup-windows-plain)
(setq ediff-window-setup-function 'ediff-setup-windows-plain) :config
:config (setq ediff-keep-variants nil)
(setq ediff-keep-variants nil) (setq ediff-make-buffers-readonly-at-startup nil)
(setq ediff-make-buffers-readonly-at-startup nil) (setq ediff-merge-revisions-with-ancestor t)
(setq ediff-merge-revisions-with-ancestor t) (setq ediff-show-clashes-only t))
(setq ediff-show-clashes-only t))
#+end_src #+end_src
** The =nebkor-git.el= section about project management (~project~) ** The =nebkor-git.el= section about project management (~project~)
@ -3463,21 +3421,6 @@ branches, etc.
'(("~/src/prototypes" . 1)))) '(("~/src/prototypes" . 1))))
#+end_src #+end_src
#+begin_quote
The difftastic Emacs package is designed to integrate difftastic - a structural diff tool - into
your Emacs workflow, enhancing your code review and comparison experience. This package
automatically displays difftastics output within Emacs using faces from your user theme, ensuring
consistency with your overall coding environment.
#+end_quote
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-git.el"
(elpaca (difftastic :host "github.com" :repo "pkryger/difftastic.el")
(use-package difftastic))
(use-package difftastic-bindings
:config (difftastic-bindings-mode))
#+end_src
** Finally, we provide the =nebkor-git.el= module ** Finally, we provide the =nebkor-git.el= module
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h:4e7035c5-9350-4c51-be85-85f2539ed295 :CUSTOM_ID: h:4e7035c5-9350-4c51-be85-85f2539ed295
@ -3561,29 +3504,28 @@ Org is far more capable, so I switched to it completely.
#+end_quote #+end_quote
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-org.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-org.el" :mkdirp yes
;; -*- lexical-binding: t; -*- ;;; Calendar
;;; Calendar (use-package calendar
(use-package calendar :ensure nil
:ensure nil :commands (calendar)
:commands (calendar) :config
:config (setq calendar-mark-diary-entries-flag nil)
(setq calendar-mark-diary-entries-flag nil) (setq calendar-mark-holidays-flag t)
(setq calendar-mark-holidays-flag t) (setq calendar-mode-line-format nil)
(setq calendar-mode-line-format nil) (setq calendar-time-display-form
(setq calendar-time-display-form '( 24-hours ":" minutes
'( 24-hours ":" minutes (when time-zone (format "(%s)" time-zone))))
(when time-zone (format "(%s)" time-zone)))) (setq calendar-week-start-day 1) ; Monday
(setq calendar-week-start-day 1) ; Monday (setq calendar-date-style 'iso)
(setq calendar-date-style 'iso) (setq calendar-time-zone-style 'numeric) ; Emacs 28.1
(setq calendar-time-zone-style 'numeric) ; Emacs 28.1
(require 'solar) (require 'solar)
(setq calendar-latitude 35.17 ; Not my actual coordinates (setq calendar-latitude 35.17 ; Not my actual coordinates
calendar-longitude 33.36) calendar-longitude 33.36)
(require 'cal-dst) (require 'cal-dst)
(setq calendar-standard-time-zone-name "+0700") (setq calendar-standard-time-zone-name "+0700")
(setq calendar-daylight-time-zone-name "+0800")) (setq calendar-daylight-time-zone-name "+0800"))
#+end_src #+end_src
** The =nebkor-org.el= section about appointment reminders (~appt~) ** The =nebkor-org.el= section about appointment reminders (~appt~)
@ -4538,7 +4480,6 @@ title of the task, and the like. The documentation string of
:END: :END:
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-langs.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-langs.el" :mkdirp yes
;; -*- lexical-binding: t; -*-
;;;; Tabs, indentation, and the TAB key ;;;; Tabs, indentation, and the TAB key
(use-package emacs (use-package emacs
:ensure nil :ensure nil
@ -4941,14 +4882,12 @@ colors (you can use tree-sitter to do *syntactic* highlighting, but that's diffe
lsp-eldoc-render-all t lsp-eldoc-render-all t
lsp-idle-delay 0.2 lsp-idle-delay 0.2
lsp-enable-snippet t lsp-enable-snippet t
lsp-file-watch-threshold 3000
read-process-output-max (* 1024 1024)) read-process-output-max (* 1024 1024))
:hook :hook
( (
(lsp-mode . lsp-enable-which-key-integration) (lsp-mode . lsp-enable-which-key-integration)
(lsp-mode . subword-mode) (lsp-mode . subword-mode)
(lsp-completion-mode . my/lsp-mode-setup-completion) (lsp-completion-mode . my/lsp-mode-setup-completion)
(go-ts-mode . lsp-mode)
;;(before-save . lsp-format-buffer) ;;(before-save . lsp-format-buffer)
)) ))
#+end_src #+end_src
@ -5275,45 +5214,6 @@ for this to continue.
:config (add-hook 'geiser-repl-mode-hook #'macrostep-geiser-setup)) :config (add-hook 'geiser-repl-mode-hook #'macrostep-geiser-setup))
#+end_src #+end_src
** The =nebkor-langs.el= section for Go
:PROPERTIES:
:ID: 3EE09964-FF3B-43BC-A09D-7CA94A245D25
:END:
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-langs.el"
(use-package go-ts-mode
:ensure nil
:hook
(go-ts-mode . go-format-on-save-mode)
(go-ts-mode . (lambda () (set (make-local-variable 'tab-width) 2)))
:custom
(go-mode-indent-offset 2)
:init
(add-to-list 'treesit-language-source-alist '(go "https://github.com/tree-sitter/tree-sitter-go"))
(add-to-list 'treesit-language-source-alist '(gomod "https://github.com/camdencheek/tree-sitter-go-mod"))
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-ts-mode))
(add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode))
:config
(reformatter-define go-format
:program "goimports"
:args '("/dev/stdin")))
(use-package flycheck-golangci-lint
:ensure t
:hook
(go-ts-mode . flycheck-golangci-lint-setup))
#+end_src
** The =nebkor-langs.el= section for Terrform
:PROPERTIES:
:ID: 43DB91FB-9B4E-4D6A-AF89-CDCD22469C3A
:END:
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-langs.el"
(use-package terraform-mode
:ensure t)
#+end_src
** The =nebkor-langs.el= section for Emacs Lisp ** The =nebkor-langs.el= section for Emacs Lisp
:PROPERTIES: :PROPERTIES:
@ -5349,6 +5249,7 @@ for this to continue.
This file contains configuration for everything I use to make Emacs my This file contains configuration for everything I use to make Emacs my
go-to place for studying anything. go-to place for studying anything.
** The =nebkor-study.el= section for reading and annotation of PDFs (~pdf-tools~) ** The =nebkor-study.el= section for reading and annotation of PDFs (~pdf-tools~)
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h:B662EABD-DC46-468A-BF59-E67AC48D2DDA :CUSTOM_ID: h:B662EABD-DC46-468A-BF59-E67AC48D2DDA
@ -5360,7 +5261,6 @@ PDF Tools is an absolute powerhouse for reading and annotating PDF
files. It is my goto tool for reading any academic papers. files. It is my goto tool for reading any academic papers.
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-study.el" :mkdirp yes #+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-study.el" :mkdirp yes
;; -*- lexical-binding: t; -*-
;;; PDF Tools for reading and annotating PDF files ;;; PDF Tools for reading and annotating PDF files
(use-package pdf-tools (use-package pdf-tools
:ensure (:host github :repo "vedang/pdf-tools" :branch "master") :ensure (:host github :repo "vedang/pdf-tools" :branch "master")
@ -6345,7 +6245,6 @@ figure it out.
:END: :END:
#+begin_src emacs-lisp :tangle "custom-lisp/nebkor-personal.el" :mkdirp yes #+begin_src emacs-lisp :tangle "custom-lisp/nebkor-personal.el" :mkdirp yes
;; -*- lexical-binding: t; -*-
(global-set-key [C-tab] #'other-window) (global-set-key [C-tab] #'other-window)
(global-set-key [C-S-tab] #'sother-window) (global-set-key [C-S-tab] #'sother-window)
(global-set-key [C-iso-lefttab] #'sother-window) (global-set-key [C-iso-lefttab] #'sother-window)
@ -6362,14 +6261,6 @@ figure it out.
"//-************************************************************************ "//-************************************************************************
// //
//-************************************************************************") //-************************************************************************")
(use-package restclient
:ensure t)
(use-package restclient-jq
:ensure t)
(elpaca (1password :host github :repo "kamushadenes/1password.el")
(use-package 1password))
#+end_src #+end_src
*** Finally, we provide the =nebkor-personal.el= module *** Finally, we provide the =nebkor-personal.el= module

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;; General minibuffer settings ;;; General minibuffer settings
(use-package minibuffer (use-package minibuffer
:ensure nil :ensure nil

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;; Dired file manager and prot-dired.el extras ;;; Dired file manager and prot-dired.el extras
(use-package dired (use-package dired
:ensure nil :ensure nil

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;; Essential configurations ;;; Essential configurations
(use-package emacs (use-package emacs
:ensure nil :ensure nil
@ -167,8 +166,8 @@ word. Fall back to regular `expreg-expand'."
(process-send-string proc text) (process-send-string proc text)
(process-send-eof proc)))) (process-send-eof proc))))
;;(setq mac-command-modifier 'meta) (setq mac-command-modifier 'meta)
;;(setq mac-option-modifier 'alt) (setq mac-option-modifier 'alt)
(setq interprogram-cut-function #'paste-to-osx) (setq interprogram-cut-function #'paste-to-osx)
(setq interprogram-paste-function #'copy-from-osx) (setq interprogram-paste-function #'copy-from-osx)
;; Work around a bug on OS X where system-name is a fully qualified ;; Work around a bug on OS X where system-name is a fully qualified
@ -203,9 +202,6 @@ If the region is selected, retain the original behaviour, otherwise call
:config :config
(setq column-number-mode t)) (setq column-number-mode t))
(use-package helpful
:ensure t)
(use-package indent-tools (use-package indent-tools
:ensure t) :ensure t)

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
(defun diff-and-set-modified-p () (defun diff-and-set-modified-p ()
"Diff the current buffer with its associated file and set buffer modified status." "Diff the current buffer with its associated file and set buffer modified status."
(let* ((tmpfile (diff-file-local-copy (current-buffer))) (let* ((tmpfile (diff-file-local-copy (current-buffer)))
@ -72,18 +71,4 @@
(set-window-buffer-start-and-point w1 b2 s2 p2) (set-window-buffer-start-and-point w1 b2 s2 p2)
(set-window-buffer-start-and-point w2 b1 s1 p1))))))) (set-window-buffer-start-and-point w2 b1 s1 p1)))))))
(defun my-update-env (fn)
(let ((str
(with-temp-buffer
(insert-file-contents fn)
(buffer-string))) lst)
(setq lst (split-string str "\000"))
(while lst
(setq cur (car lst))
(when (string-match "^\\(.*?\\)=\\(.*\\)" cur)
(setq var (match-string 1 cur))
(setq value (match-string 2 cur))
(setenv var value))
(setq lst (cdr lst)))))
(provide 'nebkor-functions) (provide 'nebkor-functions)

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;;; `ediff' ;;;; `ediff'
(use-package ediff (use-package ediff
:ensure nil :ensure nil
@ -75,10 +74,4 @@
(setq magit-repository-directories (setq magit-repository-directories
'(("~/src/prototypes" . 1)))) '(("~/src/prototypes" . 1))))
(elpaca (difftastic :host "github.com" :repo "pkryger/difftastic.el")
(use-package difftastic))
(use-package difftastic-bindings
:config (difftastic-bindings-mode))
(provide 'nebkor-git) (provide 'nebkor-git)

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;;; Tabs, indentation, and the TAB key ;;;; Tabs, indentation, and the TAB key
(use-package emacs (use-package emacs
:ensure nil :ensure nil
@ -193,14 +192,12 @@
lsp-eldoc-render-all t lsp-eldoc-render-all t
lsp-idle-delay 0.2 lsp-idle-delay 0.2
lsp-enable-snippet t lsp-enable-snippet t
lsp-file-watch-threshold 3000
read-process-output-max (* 1024 1024)) read-process-output-max (* 1024 1024))
:hook :hook
( (
(lsp-mode . lsp-enable-which-key-integration) (lsp-mode . lsp-enable-which-key-integration)
(lsp-mode . subword-mode) (lsp-mode . subword-mode)
(lsp-completion-mode . my/lsp-mode-setup-completion) (lsp-completion-mode . my/lsp-mode-setup-completion)
(go-ts-mode . lsp-mode)
;;(before-save . lsp-format-buffer) ;;(before-save . lsp-format-buffer)
)) ))
@ -366,31 +363,6 @@ NS is the namespace information passed into the function by cider."
:after geiser-repl :after geiser-repl
:config (add-hook 'geiser-repl-mode-hook #'macrostep-geiser-setup)) :config (add-hook 'geiser-repl-mode-hook #'macrostep-geiser-setup))
(use-package go-ts-mode
:ensure nil
:hook
(go-ts-mode . go-format-on-save-mode)
(go-ts-mode . (lambda () (set (make-local-variable 'tab-width) 2)))
:custom
(go-mode-indent-offset 2)
:init
(add-to-list 'treesit-language-source-alist '(go "https://github.com/tree-sitter/tree-sitter-go"))
(add-to-list 'treesit-language-source-alist '(gomod "https://github.com/camdencheek/tree-sitter-go-mod"))
(add-to-list 'auto-mode-alist '("\\.go\\'" . go-ts-mode))
(add-to-list 'auto-mode-alist '("/go\\.mod\\'" . go-mod-ts-mode))
:config
(reformatter-define go-format
:program "goimports"
:args '("/dev/stdin")))
(use-package flycheck-golangci-lint
:ensure t
:hook
(go-ts-mode . flycheck-golangci-lint-setup))
(use-package terraform-mode
:ensure t)
;;; Settings for Interaction mode for Emacs-Lisp ;;; Settings for Interaction mode for Emacs-Lisp
(use-package ielm (use-package ielm
:ensure nil :ensure nil

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;; Calendar ;;; Calendar
(use-package calendar (use-package calendar
:ensure nil :ensure nil

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
(use-package imenu (use-package imenu
:ensure nil :ensure nil
:config :config

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;; PDF Tools for reading and annotating PDF files ;;; PDF Tools for reading and annotating PDF files
(use-package pdf-tools (use-package pdf-tools
:ensure (:host github :repo "vedang/pdf-tools" :branch "master") :ensure (:host github :repo "vedang/pdf-tools" :branch "master")

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;; Everything related to the look of Emacs ;;; Everything related to the look of Emacs
;;(add-to-list 'default-frame-alist '(background-color . "snow")) ;;(add-to-list 'default-frame-alist '(background-color . "snow"))

View file

@ -1,4 +1,3 @@
;; -*- lexical-binding: t; -*-
;;; General window and buffer configurations ;;; General window and buffer configurations
(use-package uniquify (use-package uniquify
:ensure nil :ensure nil