:pre-build (("pandoc" "-o" "elfeed.texi" "README.md"))))
(elpaca emms)
(elpaca htmlize)
-(elpaca (oauth2
- :repo "git://git.sv.gnu.org/emacs/elpa"
- :local-repo "oauth2"
- :branch "externals/oauth2"))
-(elpaca (lin
- :pre-build (("emacs" "--batch" "-l" "ox-texinfo" "README.org"
- "--eval" "(setq org-babel-confirm-evaluate-answer-no t)"
- "-f" "org-texinfo-export-to-texinfo"))))
+;; (elpaca (oauth2
+;; :repo "git://git.sv.gnu.org/emacs/elpa"
+;; :local-repo "oauth2"
+;; :branch "externals/oauth2"))
+(elpaca transient)
(elpaca magit)
(elpaca (markdown-mode
:pre-build (("pandoc" "-o" "markdown-mode.texi" "README.md"))))
("mv" "README.texi" "pdf-tools.texi"))))
(elpaca ob-prolog)
(elpaca (kubed :repo "~/checkouts/kubed"))
+;; (elpaca kubed)
(elpaca-wait)
ol-gnus
ol-info
ol-irc
- ol-mhe
ol-eww
ob-sql
org-tempo)
completions-max-height 16
completion-auto-wrap t
read-minibuffer-restore-windows nil
+ ;; include CWD in shell command prompts
+ shell-command-prompt-show-cwd t
shell-kill-buffer-on-exit t
+ shell-dirtrack-verbose nil
compilation-scroll-output t
display-time-default-load-average nil
;; allow disabling confirming before compilation via local variables foo bar baz
safe-local-variable-values '((compilation-read-command . nil))
xref-search-program 'ripgrep
grep-use-headings t
- ;; include CWD in shell command prompts
- shell-command-prompt-show-cwd t
sqlformat-command 'pgformatter
sql-input-ring-file-name (expand-file-name ".sqli-history" user-emacs-directory)
;; use relative line numbers
'esy-o365-token-refresh-last-time)
(with-eval-after-load 'gnus-sum
- (keymap-unset gnus-summary-mode-map "M-#" t))
+ (keymap-unset gnus-summary-mode-map "M-#" t)
+ (keymap-unset gnus-summary-mode-map "M-&" t))
;;; Define custom commands
(quit-window nil window)))
'send 'kill)))
-(defun esy/kill-dwim ()
- "When region is active, kill region, otherwise kill last word."
- (interactive)
- (if (region-active-p)
- (let ((beg (region-beginning))
- (end (region-end)))
- (kill-region beg end))
- (let ((end (point)))
- (backward-word)
- (kill-region (point) end))))
+;; (defun esy/kill-dwim ()
+;; "When region is active, kill region, otherwise kill last word."
+;; (interactive)
+;; (if (region-active-p)
+;; (let ((beg (region-beginning))
+;; (end (region-end)))
+;; (kill-region beg end))
+;; (let ((end (point)))
+;; (backward-word)
+;; (kill-region (point) end))))
(defun duplicate-line-stay (arg)
(interactive "p")
display-fill-column-indicator-mode
display-line-numbers-mode
flymake-mode
+ electric-indent-local-mode
;; esy/prog-set-up-capf
))
(add-hook 'prog-mode-hook mode))
(keymap-global-set "C-c 1" #'delete-other-windows)
(keymap-global-set "C-c 2" #'split-window-below)
(keymap-global-set "C-c 3" #'split-window-right)
-(keymap-global-set "<remap> <kill-region>" #'esy/kill-dwim)
+;; (keymap-global-set "<remap> <kill-region>" #'esy/kill-dwim)
(keymap-global-set "<remap> <suspend-frame>" #'zap-up-to-char)
(keymap-global-set "s-n" #'duplicate-line)
(keymap-global-set "s-p" #'duplicate-line-stay)
;;; disable some commands
(put 'suspend-frame 'disabled t)
-
;;; Configure project management commands
(with-eval-after-load 'project
(with-eval-after-load 'dired
(put 'dired-find-alternate-file 'disabled nil))
-
;;; Configure remote access via `tramp'
(with-eval-after-load 'tramp
(add-to-list 'zoneinfo-style-world-list '("Asia/Tel_Aviv" "Tel Aviv")))
;;; Configure spelling errors correction via `flyspell'
-
(with-eval-after-load 'flyspell
(keymap-unset flyspell-mode-map "C-," t)
(keymap-unset flyspell-mode-map "C-." t)
;;; Configure minibuffer completions
-;; (add-to-list 'display-buffer-alist
-;; '("\\*Completions\\*"
-;; (display-buffer-reuse-window display-buffer-at-bottom)
-;; (window-parameters
-;; ;; (mode-line-format . none)
-;; (split-window . ignore))))
-
(add-hook 'completion-list-mode-hook
(lambda ()
(setq-local cursor-in-non-selected-windows nil)))
;;; Configure highlighting of the current line via `lin'
-(with-eval-after-load 'lin
- (add-to-list 'lin-mode-hooks 'gnus-summary-mode-hook)
- (add-to-list 'lin-mode-hooks 'gnus-group-mode-hook)
- (add-to-list 'lin-mode-hooks 'gnus-server-mode-hook))
+(with-eval-after-load 'hl-line
+ (dolist (mode '(gnus-summary-mode gnus-group-mode gnus-server-mode))
+ (add-to-list 'global-hl-line-modes mode)))
;;; Enable some global minor modes
-
-(mapc #'funcall '(column-number-mode
- context-menu-mode
- display-battery-mode
- display-time-mode
- global-auto-revert-mode
- global-completion-preview-mode
- global-diff-hl-mode
- global-minibuffer-auto-completion-mode
- kubed-menu-bar-mode
- lin-global-mode
- minibuffer-depth-indicate-mode
- pixel-scroll-precision-mode
- recentf-mode
- repeat-mode
- save-place-mode
- savehist-mode
- transient-mark-mode
- winner-mode))
+(dolist (mode '(column-number-mode
+ context-menu-mode
+ display-battery-mode
+ display-time-mode
+ global-auto-revert-mode
+ global-completion-preview-mode
+ global-diff-hl-mode
+ global-hl-line-mode
+ global-minibuffer-auto-completion-mode
+ kubed-menu-bar-mode
+ minibuffer-depth-indicate-mode
+ pixel-scroll-precision-mode
+ recentf-mode
+ repeat-mode
+ save-place-mode
+ savehist-mode
+ transient-mark-mode
+ winner-mode))
+ (funcall mode))
;;; Set up EMMS
(with-eval-after-load 'elisp-mode
(setq elisp-flymake-byte-compile-load-path (cons "./" load-path))
(keymap-set emacs-lisp-mode-map "C-c C-t" #'trace-function)
- (keymap-set emacs-lisp-mode-map "C-c C-s" #'set-variable))
+ (keymap-set emacs-lisp-mode-map "C-c C-s" #'set-variable)
+ (add-hook 'emacs-lisp-mode-hook #'cursor-sensor-mode))
(dolist (mm '((go-ts-mode . go-ts-mode-hook)
(typescript-ts-mode . typescript-ts-mode-hook)
(keymap-set completion-preview-active-mode-map "M-p" #'completion-preview-prev-candidate)
(keymap-set completion-preview-active-mode-map "M-f" #'completion-preview-insert-word))
-(load-file "/Users/eshelyaron/checkouts/agda/src/data/emacs-mode/agda2.el")
+(add-hook 'eval-expression-minibuffer-setup-hook #'completion-preview-mode)
+(add-hook 'eval-expression-minibuffer-setup-hook #'electric-pair-mode)
+
+(load-file "/usr/local/opt/agda/libexec/ghc-9.10.1-inplace/Agd-2.6.4.3-7d670049/share/emacs-mode/agda2.el")
(defun read-buffer-to-switch-recentf (file)
(interactive