| | |
| | | #+END_SRC |
| | | ** Default font |
| | | #+BEGIN_SRC emacs-lisp |
| | | (set-default-font "DejaVu Sans Mono-10") |
| | | (set-frame-font "DejaVu Sans Mono" nil t)
|
| | | #+END_SRC |
| | | ** Remove menu bar, toolbar, but keep scroll bar
|
| | | #+BEGIN_SRC emacs-lisp
|
| | | (menu-bar-mode 0)
|
| | | (tool-bar-mode 0)
|
| | | (scroll-bar-mode 1)
|
| | | #+END_SRC
|
| | |
|
| | | * Writing requirements |
| | | ** Spellchecking |
| | | #+BEGIN_SRC emacs-lisp |
| | | (require 'ispell) |
| | | (setq-default ispell-program-name "aspell") |
| | | (setq-default ispell-local-dictionary "en_AU")
|
| | | (add-hook 'latex-mode-hook 'flyspell-mode) |
| | | (add-hook 'latex-mode-hook 'flyspell-buffer) |
| | | (add-hook 'org-mode-hook 'flyspell-mode) |
| | |
| | | **** company |
| | | #+BEGIN_SRC emacs-lisp |
| | | (use-package company-c-headers |
| | | :ensure tk |
| | | :ensure t
|
| | | :after company |
| | | :config |
| | | (add-hook 'c++-mode-hook 'company-mode) |
| | |
| | | |
| | | (use-package irony |
| | | :ensure t |
| | | :config |
| | | :init
|
| | | (setq w32-pipe-read-delay 0) |
| | | (setq irony-server-w32-pipe-buffer-size (* 64 1024))
|
| | | (add-hook 'c++-mode-hook 'irony-mode) |
| | | (add-hook 'c-mode-hook 'irony-mode) |
| | | (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
|
| | | (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)) |
| | | #+END_SRC |
| | | *** emacs-lisp |
| | |
| | | (setq plantuml-jar-path "c:/ProgramData/chocolatey/lib/plantuml/tools/plantuml.jar")) |
| | | #+END_SRC |
| | | |
| | | *** Matlab |
| | | **** Matlab mode |
| | | #+BEGIN_SRC emacs-lisp |
| | | (use-package matlab-mode |
| | | :ensure t |
| | | :config |
| | | (autoload 'matlab-mode "matlab" "Matlab Editing Mode" t) |
| | | (add-to-list |
| | | 'auto-mode-alist |
| | | '("\\.m$" . matlab-mode)) |
| | | (setq matlab-indent-function t)) |
| | | #+END_SRC |
| | | *** Racket |
| | | **** Major mode |
| | | #+BEGIN_SRC emacs-lisp |
| | |
| | | (setq matlab-indent-function t)) |
| | | #+END_SRC |
| | | |
| | | *** Verilog
|
| | | Add updated version and integrate it with Emacs.
|
| | | #+BEGIN_SRC emacs-lisp
|
| | | (add-to-list 'load-path "~/.emacs.d/elpa/verilog-mode-20190324/verilog-mode.el")
|
| | | (require 'verilog-mode)
|
| | |
|
| | | (autoload 'verilog-mode "verilog-mode" "Verilog mode" t )
|
| | | (add-to-list 'auto-mode-alist '("\\.[ds]?vh?\\'" . verilog-mode))
|
| | | #+END_SRC
|
| | | * Org mode |
| | | ** Up to date org |
| | | #+BEGIN_SRC emacs-lisp |
| | |
| | | (fortran . t) |
| | | (java . t))) |
| | | #+END_SRC |
| | | ** Latex preview fragments match colour
|
| | | Make the previews match theme colour of Emacs.
|
| | | #+BEGIN_SRC emacs-lisp
|
| | | (let ((dvipng--plist (alist-get 'dvipng org-preview-latex-process-alist)))
|
| | | (plist-put dvipng--plist :use-xcolor t)
|
| | | (plist-put dvipng--plist :image-converter '("dvipng -D %D -T tight -o %O %f")))
|
| | | #+END_SRC
|
| | |
|