 (add-hook 'prog-mode-hook 'show-paren-mode)
 
 ;; Use CUA mode for rectangular sections.
-(setq cua-enable-cua-keys nil)
-(cua-mode 1)
+(use-package cua-base
+  :ensure nil
+  :custom (cua-enable-cua-keys nil)
+  :init
+  (cua-mode 1))
 
 ;; When in prettify-symbol-mode, expand when point is at the symbol.
 (setq prettify-symbols-unprettify-at-point 'right-edge)

  :config
  (global-anzu-mode))

(provide 'femacs-editor)
;;; femacs-editor.el ends here

(use-package dtrt-indent
  :ensure t
  :commands (dtrt-indent-mode)
  :custom (dtrt-indent-active-mode-line-info nil)
  :init
  (add-hook 'prog-mode-hook 'dtrt-indent-mode)
  :config
  (diminish 'dtrt-indent-mode))
