;; Manual settings (setq-default c-basic-offset 4) (global-set-key (kbd "C-s") 'isearch-forward-regexp) ; emacs server for emacsclient (server-start) (which-key-mode t) (ivy-mode) (setq ivy-use-virtual-buffers t) (setq enable-recursive-minibuffers t) (counsel-mode) (defun c-setup () (local-set-key (kbd "C-c C-f") 'clang-format-buffer)) (add-hook 'c-mode-common-hook 'c-setup) ;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding a semicolon to the start of the line. ;; You may delete these explanatory comments. (package-initialize) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(ansi-color-names-vector ["#757575" "#CD5542" "#4A8F30" "#7D7C21" "#4170B3" "#9B55C3" "#68A5E9" "gray43"]) '(csv-separators '(",")) '(custom-enabled-themes '(leuven)) '(custom-safe-themes '("cfe4d36ed4cf00a541f7ba0deb38c94808c13a3e4c717f07bc3b9c866670e8d1" "474513bacf33a439da7b9a5df1dd11a277929d8480752675fc7d5f3816d8fdef" "c2d6d17e0918b7f3c73dc456db1fedfb86b16bf17ef9a926b6b891ea39098718" "aad3ae46bd7abdf34ee22c35f827db75c669eb643fd4a6ed7dfb806fe0e90b4e" "56832ed2d65f75fa5767e56ad8795826f449fbecb9c3cd7ba02678c83ad6dd6f" "bf798e9e8ff00d4bf2512597f36e5a135ce48e477ce88a0764cfb5d8104e8163" "fa2b58bb98b62c3b8cf3b6f02f058ef7827a8e497125de0254f56e373abee088" default)) '(dtrt-indent-global-mode t) '(flycheck-checker-error-threshold 10000) '(global-company-mode t) '(global-flycheck-mode t) '(global-tree-sitter-mode t) '(helm-mode nil) '(inhibit-startup-screen t) '(lsp-rust-server 'rust-analyzer) '(menu-bar-mode nil) '(package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/"))) '(package-selected-packages '(magit bison-mode leuven-theme clang-format+ company-php flycheck-eglot avy helm markdown-mode php-mode treemacs dtrt-indent company-box deadgrep tree-sitter-indent tree-sitter-langs clang-format tree-sitter which-key company counsel csv-mode json-mode lua-mode yasnippet yaml-mode rust-mode cmake-mode dap-mode flycheck)) '(rust-format-on-save nil) '(show-trailing-whitespace t) '(smtpmail-smtp-server "localhost") '(smtpmail-smtp-service 25) '(tool-bar-mode nil) '(use-short-answers t) '(visible-bell t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; Manual settings - post Package.el (require 'company-box) (add-hook 'company-mode-hook 'company-box-mode) (put 'narrow-to-region 'disabled nil)