Narendra Joshi writes: > Sharon Kimble writes: > >> #+BEGIN_SRC emacs-lisp >> (require 'mediawiki) >> ;;(require 'ox-mediawiki) >> (eval-after-load "org" '(require 'ox-mediawiki nil t)) >> (global-set-key (kbd "M-s-a") 'org-mw-export-to-mediawiki) ;; ("mw" file) >> (global-set-key (kbd "M-s-e") 'org-mw-export-as-mediawiki) ;; (temporary buffer) >> #+END_SRC >> [2017-03-16 Thu 10:30] >> >> #+BEGIN_SRC emacs-lisp >> (defun mediawiki-test-suite () >> (toggle-truncate-lines 0) >> (abbrev-mode 1) >> (set-fill-column 65000) >> (auto-fill-mode 0)) >> >> (add-hook 'mediawiki-mode-hook #'mediawiki-test-suite) >> #+END_SRC >> [2017-03-17 Fri 21:04] > How do you insert these code blocks that get syntax highlighted in Emacs/Gnus? Both of these blocks came from my emacs init file, in my case an org-file, and they then are able to be used as required. Does this help? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk DrugFacts = https://www.drugfacts.org.uk Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1