diff --git a/HACKING.md b/HACKING.md index f7a393a5..0ae4cd87 100644 --- a/HACKING.md +++ b/HACKING.md @@ -26,9 +26,6 @@ need in gnome-shell. Generally, we follow [GJS coding style][coding-style], which in short is: indent 4 spaces, no tabs, space after comma, no space after function call. -The Emacs mode line for this -/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */ - Imports should be at the top, in two groups, one for standard imports (like imports.lang or imports.dbus) and introspection, the other for Shell API. Within the same group, put everything diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js index 17bcf3b5..688c7595 100644 --- a/extensions/apps-menu/extension.js +++ b/extensions/apps-menu/extension.js @@ -5,7 +5,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */ import Atk from 'gi://Atk'; import Clutter from 'gi://Clutter'; import Gio from 'gi://Gio'; diff --git a/extensions/auto-move-windows/extension.js b/extensions/auto-move-windows/extension.js index 4f972cd7..34decce7 100644 --- a/extensions/auto-move-windows/extension.js +++ b/extensions/auto-move-windows/extension.js @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- -// Start apps on custom workspaces - import Shell from 'gi://Shell'; import {Extension} from 'resource:///org/gnome/shell/extensions/extension.js'; diff --git a/extensions/auto-move-windows/prefs.js b/extensions/auto-move-windows/prefs.js index 683bbdcc..98e424e0 100644 --- a/extensions/auto-move-windows/prefs.js +++ b/extensions/auto-move-windows/prefs.js @@ -3,9 +3,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- -// Start apps on custom workspaces - import Adw from 'gi://Adw'; import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js index 03935275..9daa9537 100644 --- a/extensions/native-window-placement/extension.js +++ b/extensions/native-window-placement/extension.js @@ -5,7 +5,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- import Clutter from 'gi://Clutter'; import {Extension, InjectionManager} from 'resource:///org/gnome/shell/extensions/extension.js'; diff --git a/extensions/places-menu/extension.js b/extensions/places-menu/extension.js index 1431878b..bf68c029 100644 --- a/extensions/places-menu/extension.js +++ b/extensions/places-menu/extension.js @@ -5,7 +5,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */ import Clutter from 'gi://Clutter'; import GObject from 'gi://GObject'; import St from 'gi://St'; diff --git a/extensions/user-theme/extension.js b/extensions/user-theme/extension.js index fd7a7b43..7cc73e0f 100644 --- a/extensions/user-theme/extension.js +++ b/extensions/user-theme/extension.js @@ -5,9 +5,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- -// Load shell theme from ~/.local/share/themes/name/gnome-shell - import Gio from 'gi://Gio'; import {Extension} from 'resource:///org/gnome/shell/extensions/extension.js'; diff --git a/extensions/user-theme/prefs.js b/extensions/user-theme/prefs.js index 9b4cf951..29f4993f 100644 --- a/extensions/user-theme/prefs.js +++ b/extensions/user-theme/prefs.js @@ -2,8 +2,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- - // we use async/await here to not block the mainloop, not to parallelize /* eslint-disable no-await-in-loop */ diff --git a/extensions/window-list/prefs.js b/extensions/window-list/prefs.js index 3d00163e..ca795067 100644 --- a/extensions/window-list/prefs.js +++ b/extensions/window-list/prefs.js @@ -3,7 +3,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- import Adw from 'gi://Adw'; import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js index f40c4a10..49dce1e8 100644 --- a/extensions/windowsNavigator/extension.js +++ b/extensions/windowsNavigator/extension.js @@ -6,7 +6,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */ import Clutter from 'gi://Clutter'; import Graphene from 'gi://Graphene'; import St from 'gi://St'; diff --git a/extensions/workspace-indicator/prefs.js b/extensions/workspace-indicator/prefs.js index 2abfc3a8..7ee988cb 100644 --- a/extensions/workspace-indicator/prefs.js +++ b/extensions/workspace-indicator/prefs.js @@ -3,7 +3,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- import {ExtensionPreferences} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'; import {WorkspacesPage} from './workspacePrefs.js'; diff --git a/extensions/workspace-indicator/workspacePrefs.js b/extensions/workspace-indicator/workspacePrefs.js index 6103d4d3..339a1a5a 100644 --- a/extensions/workspace-indicator/workspacePrefs.js +++ b/extensions/workspace-indicator/workspacePrefs.js @@ -3,7 +3,6 @@ // // SPDX-License-Identifier: GPL-2.0-or-later -// -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- import Adw from 'gi://Adw'; import Gio from 'gi://Gio'; import GLib from 'gi://GLib';