Update modules/applications/emacs/default.nix modules/applications/emacs/init.el
This commit is contained in:
parent
038e613989
commit
5e096c8792
@ -38,6 +38,7 @@
|
|||||||
xah-fly-keys
|
xah-fly-keys
|
||||||
arduino-mode
|
arduino-mode
|
||||||
elixir-mode
|
elixir-mode
|
||||||
|
company-box
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -285,6 +285,8 @@ If point was already at that position, move point to beginning of line."
|
|||||||
:hook
|
:hook
|
||||||
((nix-mode . (lambda () (local-set-key (kbd "<f7>") 'nix-format-buffer))))
|
((nix-mode . (lambda () (local-set-key (kbd "<f7>") 'nix-format-buffer))))
|
||||||
((nix-mode . (lambda () (setq indent-line-function 'nix-indent-line)))))
|
((nix-mode . (lambda () (setq indent-line-function 'nix-indent-line)))))
|
||||||
|
(use-package company-box
|
||||||
|
:hook (company-mode . company-box-mode))
|
||||||
|
|
||||||
;; -------------------
|
;; -------------------
|
||||||
;; expand-region
|
;; expand-region
|
||||||
@ -302,8 +304,7 @@ If point was already at that position, move point to beginning of line."
|
|||||||
;; Allows TAB to select and complete at the same time.
|
;; Allows TAB to select and complete at the same time.
|
||||||
(company-tng-configure-default)
|
(company-tng-configure-default)
|
||||||
(setq company-frontends
|
(setq company-frontends
|
||||||
'(company-tng-frontend
|
'(company-pseudo-tooltip-frontend
|
||||||
company-pseudo-tooltip-frontend
|
|
||||||
company-echo-metadata-frontend))
|
company-echo-metadata-frontend))
|
||||||
|
|
||||||
(require 'color)
|
(require 'color)
|
||||||
|
Loading…
Reference in New Issue
Block a user