Skip to content

Commit

Permalink
Merge branch 'purcell:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
rusherman authored Jul 11, 2023
2 parents 165f2c3 + 9d80c30 commit 85d85c1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
7 changes: 4 additions & 3 deletions lisp/init-corfu.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
(setq-default corfu-quit-no-match 'separator)
(add-hook 'after-init-hook 'global-corfu-mode)

(when (featurep 'corfu-popupinfo)
(with-eval-after-load 'corfu
(corfu-popupinfo-mode)))


(with-eval-after-load 'corfu
(corfu-popupinfo-mode))

;; TODO: https://github.com/jdtsmith/kind-icon
)
Expand Down
6 changes: 4 additions & 2 deletions lisp/init-editing-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@



;;; Newline behaviour
;;; Newline behaviour (see also electric-indent-mode, enabled above)

(global-set-key (kbd "RET") 'newline-and-indent)
(defun sanityinc/newline-at-end-of-line ()
"Move to end of line, enter a newline, and reindent."
(interactive)
Expand Down Expand Up @@ -145,6 +144,9 @@

;;; Handy key bindings

(with-eval-after-load 'help
(define-key help-map "A" 'describe-face))

(global-set-key (kbd "C-.") 'set-mark-command)
(global-set-key (kbd "C-x C-.") 'pop-global-mark)

Expand Down
2 changes: 1 addition & 1 deletion lisp/init-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
(require-package 'git-link)

(when (maybe-require-package 'magit)
(setq-default magit-diff-refine-hunk t)
(setq-default magit-diff-refine-hunk 'all)

;; Hint: customize `magit-repository-directories' so that you can use C-u M-F12 to
;; quickly open magit on any one of your projects.
Expand Down
2 changes: 2 additions & 0 deletions lisp/init-nix.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
;; TODO: write a CAPF backend based on company-nixos-options
))

(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs '((nix-mode) . ("nil"))))

(provide 'init-nix)
;;; init-nix.el ends here
4 changes: 0 additions & 4 deletions lisp/init-ocaml.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
;;; Commentary:
;;; Code:

(with-eval-after-load 'eglot
(put 'tuareg-mode 'eglot-language-id "ocaml")
(add-to-list 'eglot-server-programs '((tuareg-mode) . ("ocamllsp")) t))

(when (maybe-require-package 'tuareg)
(with-eval-after-load 'tuareg
(defvar-local tuareg-previous-tuareg-buffer nil
Expand Down
9 changes: 5 additions & 4 deletions lisp/init-paredit.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

(require-package 'paredit)


(defun sanityinc/maybe-map-paredit-newline ()
(unless (or (memq major-mode '(inferior-emacs-lisp-mode cider-repl-mode))
(unless (or (derived-mode-p 'inferior-emacs-lisp-mode 'cider-repl-mode)
(minibufferp))
(local-set-key (kbd "RET") 'paredit-newline)))

Expand All @@ -15,7 +16,7 @@
(diminish 'paredit-mode " Par")
;; Suppress certain paredit keybindings to avoid clashes, including
;; my global binding of M-?
(dolist (binding '("C-<left>" "C-<right>" "C-M-<left>" "C-M-<right>" "M-s" "M-?"))
(dolist (binding '("RET" "C-<left>" "C-<right>" "C-M-<left>" "C-M-<right>" "M-s" "M-?"))
(define-key paredit-mode-map (read-kbd-macro binding) nil)))


Expand All @@ -34,8 +35,8 @@

(defun sanityinc/conditionally-enable-paredit-mode ()
"Enable paredit during lisp-related minibuffer commands."
(if (memq this-command paredit-minibuffer-commands)
(enable-paredit-mode)))
(when (memq this-command paredit-minibuffer-commands)
(enable-paredit-mode)))


(provide 'init-paredit)
Expand Down

0 comments on commit 85d85c1

Please sign in to comment.