;;; Set up Elpaca
-(defvar elpaca-installer-version 0.5)
+(defvar elpaca-installer-version 0.6)
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
;;; Install packages
-(unless (eq system-type 'android)
- (elpaca org-transclusion)
- (elpaca (sweeprolog
- :repo "~/checkouts/sweep/"
- :files ("*.org" "*.texi" "sweep.pl"
- "sweeprolog-pce-theme.el" "sweeprolog.el"))))
+(elpaca org-transclusion)
+(elpaca (sweeprolog
+ :files ("*.org" "*.texi" "sweep.pl"
+ "sweeprolog-pce-theme.el" "sweeprolog.el")))
(elpaca avy)
(elpaca (bbdb
:repo "https://git.savannah.nongnu.org/git/bbdb.git"
("emacs" "--batch" "-l" "ox-texinfo" "README.org"
"--eval" "(setq org-babel-confirm-evaluate-answer-no t)"
"-f" "org-texinfo-export-to-texinfo"))))
-(elpaca (completion-preview :repo "git://git.eshelyaron.com/completion-preview.git"))
(elpaca debbugs)
(elpaca (devdocs
:pre-build (("emacs" "--batch" "-l" "ox-texinfo" "README.org"
: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 (openai
- :repo "https://git.sr.ht/~eshel/openai.el"))
+(elpaca (openai :repo "https://git.sr.ht/~eshel/openai.el"))
(elpaca package-lint)
(elpaca paredit)
(elpaca rainbow-delimiters)
"-f" "org-texinfo-export-to-texinfo")
("mv" "README.texi" "pdf-tools.texi"))))
(elpaca ob-prolog)
+;; (elpaca (completion-preview :repo "git://git.eshelyaron.com/completion-preview.git"))
(elpaca-wait)
"v" #'elpaca-visit
"d" #'elpaca-delete
"l" #'elpaca-log
- "i" #'elpaca-info)
+ "i" #'elpaca-info
+ "t" #'elpaca-try)
(defalias 'esy/elpaca-prefix-map esy/elpaca-prefix-map)
%i"
:prepend t
:empty-lines 1
- :immediate-finish t))
+ :immediate-finish t)
+ ("h" "Homework" entry
+ (file+headline "~/org/inbox.org" "Tasks")
+ "** TODO [#B] %^{Task} :studies:
+DEADLINE: %(format-time-string \"<%Y-%m-%d %H:%M>\" (org-read-date t t))
+:PROPERTIES:
+:CreatedAt: %u
+:CapturedAt: %a
+:CapturedAs: Homework
+:END:"
+ :prepend t
+ :empty-lines 1))
;; point Org to file agenda file
org-agenda-files '("~/org/inbox.org")
org-default-notes-file "~/org/inbox.org"
;; completion-auto-help 'visible
completions-max-height 16
completion-auto-wrap t
+ completion-at-point-functions '(esy/file-capf)
corfu-cycle t
corfu-indexed-start 1
shell-kill-buffer-on-exit t
;;; Extend other standard hooks
(add-hook 'text-mode-hook #'flyspell-mode)
+(add-hook 'text-mode-hook #'completion-preview-mode)
;;; Bind some keys
(keymap-global-set "M-#" #'dictionary-search)
(keymap-global-set "M-o" #'previous-buffer)
(keymap-global-set "M-O" #'next-buffer)
-(keymap-global-set "C-," #'backward-delete-char)
+(keymap-global-set "C-," #'delete-backward-char)
(keymap-global-set "C-." #'embark-act)
(keymap-global-set "C-;" #'avy-goto-char-timer)
(keymap-global-set "C-s-f" #'toggle-frame-fullscreen)
(when bs
(let* ((start (car bs))
(end (cdr bs)))
- `(,start ,end completion--file-name-table . (:exclusive no))))))
-
-(add-to-list 'completion-at-point-functions #'esy/file-capf)
+ `(,start ,end completion-file-name-table :exclusive no)))))
;;; Configure highlighting of the current line via `lin'
;;; Configure `completion-in-region' UI with `corfu'
-(let ((original-completion-in-region-function completion-in-region-function))
- (defun esy/setup-corfu (&rest args)
- (setq completion-in-region-function original-completion-in-region-function)
- (global-corfu-mode)
- (apply #'completion-in-region args)))
-(setq completion-in-region-function #'esy/setup-corfu)
(with-eval-after-load 'corfu
(defun esy/margin-formatter (metadata)
"Format METADATA for `corfu-margin-formatters'."
transient-mark-mode
winner-mode
completions-auto-update-mode
+ global-corfu-mode
))
(funcall mode))
(esy/add-feed url keywords)))
(setq
- ;; don't use bold face for unread Elfeed entries
- elfeed-search-face-alist '((unread default))
;; read feeds list from a separate file
elfeed-feeds (esy/feeds)))
-(with-eval-after-load 'elfeed-search
- (set-face-attribute 'elfeed-search-title-face nil
- :foreground "grey50"
- :inherit nil))
-
;;; Disable some minor-mode mode-line lighters
(dolist (mm '((whitespace-cleanup-mode . whitespace-cleanup-mode)
(with-eval-after-load 'elisp-mode
(setq elisp-flymake-byte-compile-load-path (cons "./" load-path)))
+(dolist (mm '((go-ts-mode . go-ts-mode-hook)
+ (typescript-ts-mode . typescript-ts-mode-hook)
+ (python . python-base-mode-hook)))
+ (with-eval-after-load (car mm) (add-hook (cdr mm) #'eglot-ensure)))
+
(provide 'init)
;;; init.el ends here