1

How can I make sure that Emacs opens files with extension *.rec as normal text files?

When I try to open a file with the extnsion *.rec, I get the error message Running someFile.rec...done without the file being opened.

Screenshot

I assume that rec-mode is not installed because its status is Available from gnu (see below).

Status of the rec-mode package

What can I do in order for Emacs to open *.rec files as plain, normal text files?

Drew
  • 77,472
  • 10
  • 114
  • 243
Glory to Russia
  • 235
  • 2
  • 10

2 Answers2

2

To tell Emacs that *.rec files should be opened in text-mode:

(add-to-list 'auto-mode-alist '("\\.rec\\'" . text-mode))
phils
  • 50,977
  • 3
  • 79
  • 122
1

Use M-x find-file-literally Emacs will use fundamental-mode as the major mode. Then change to txt mode.

Paul Brennan
  • 111
  • 3