diff options
-rwxr-xr-x | emacs.org | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -619,6 +619,7 @@ Generate a random password between 20 and 40 characters (global-set-key (kbd "M-.") 'xref-find-definitions) (global-set-key (kbd "C-c l") 'display-line-numbers-mode) + (require 'company) (add-hook 'after-init-hook 'global-company-mode) (define-key company-active-map (kbd "TAB") 'company-indent-or-complete-common) @@ -632,6 +633,12 @@ Generate a random password between 20 and 40 characters (dap-ui-mode) (setq indent-tabs-mode nil) + + (defun insert-brackets (&optional arg) + (interactive "P") + (insert-pair arg ?\[ ?\])) + + (global-set-key (kbd "C-x M-[") 'insert-brackets) #+end_src ** Magit #+begin_src emacs-lisp |