Fix Emacs annoyances

This commit is contained in:
2022-05-12 22:06:42 -07:00
parent 9d8c61bd23
commit 839f39cf23
2 changed files with 7 additions and 19 deletions

View File

@@ -10,10 +10,7 @@ SPC p g to open projectile project straight to git
https://karthinks.com/software/fifteen-ways-to-use-embark/
** Snippets
*** Insert Org source block
** Disable "Enter" in company-active-map
** g u to go to references
* Kitty
** Fine tune theme for visiblity on mac/windows
** Nix-installed kitty on Linux

View File

@@ -113,20 +113,11 @@
(add-to-list 'auto-mode-alist '("\\.log\\.out\\'" . display-ansi-colors))
;; Here are some additional functions/macros that could help you configure Doom:
;;
;; - `load!' for loading external *.el files relative to this one
;; - `use-package' for configuring packages
;; - `after!' for running code after a package has loaded
;; - `add-load-path!' for adding directories to the `load-path', relative to
;; this file. Emacs searches the `load-path' when you load packages with
;; `require' or `use-package'.
;; - `map!' for binding new keys
;;
;; To get information about any of these functions/macros, move the cursor over
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c g k').
;; This will open documentation for it, including demos of how they are used.
;;
;; You can also try 'gd' (or 'C-c g d') to jump to their definition and see how
;; they are implemented.
;; Disable smartparens' insistence on inserting extraneous colons in Python
(setq sp-python-insert-colon-in-function-definitions nil)
;; Disable "Enter" as a company-mode completion trigger and replace with C-SPC
(with-eval-after-load 'company
(define-key company-active-map (kbd "<return>") nil)
(define-key company-active-map (kbd "RET") nil)
(define-key company-active-map (kbd "C-SPC") #'company-complete-selection))