Note that there are some explanatory texts on larger screens.

plurals
  1. POemacs identation works only in terminal (-nw)
    primarykey
    data
    text
    <p>I have GNU Emacs 23.1.1, on Ubuntu 10.10.</p> <p>I have to following .emacs:</p> <pre><code>(custom-set-variables '(cua-mode t nil (cua-base)) '(inhibit-startup-screen t) ) (show-paren-mode 1) (setq show-paren-delay 0) ;; perl mode stuff (fset 'perl-mode 'cperl-mode) (setq cperl-indent-level 4 cperl-close-paren-offset -4 cperl-continued-statement-offset 0 cperl-indent-parens-as-block t cperl-tab-always-indent t cperl-invalid-face nil ) </code></pre> <p>When I do <code>$ emacs -nw</code> the tab indentation works fine. When I launch the GUI version with <code>$ emacs</code> tab indentation doesn't work. I only get space indentation.</p> <p>How can I get tab indentation in the GUI as well?</p> <p>The cperl conf was taken from <a href="http://www.emacswiki.org/emacs/IndentingPerl" rel="nofollow">emacswiki</a></p> <p>The emacs packages I have:</p> <pre><code>$ dpkg -l | grep emacs ii emacs 23.1+1-4ubuntu7.2+maverick1 The GNU Emacs editor (metapackage) ii emacs-goodies-el 33.6ubuntu1 Miscellaneous add-ons for Emacs ii emacs-snapshot 1:20090909-1 The GNU Emacs editor (development snapshot) ii emacs-snapshot-bin-common 1:20090909-1 The GNU Emacs editor's shared, architecture dependent files ii emacs-snapshot-common 1:20090909-1 The GNU Emacs editor's common infrastructure ii emacs23 23.1+1-4ubuntu7.2+maverick1 The GNU Emacs editor (with GTK+ user interface) ii emacs23-bin-common 23.1+1-4ubuntu7.2+maverick1 The GNU Emacs editor's shared, architecture dependent files ii emacs23-common 23.1+1-4ubuntu7.2+maverick1 The GNU Emacs editor's shared, architecture independent infrastructure ii emacsen-common 1.4.19ubuntu1 Common facilities for all emacsen </code></pre> <p><strong>EDIT:</strong> Sorry, but I just noticed that I hadn't studied the behaviour correctly. In both gui and -nw, when I edit a file already indented in tabs, it uses tabs, whereas when I edit a new file, it indents it with spaces.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload