Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 2, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 2, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 2, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 2, 2025

      How Red Hat just quietly, radically transformed enterprise server Linux

      June 2, 2025

      OpenAI wants ChatGPT to be your ‘super assistant’ – what that means

      June 2, 2025

      The best Linux VPNs of 2025: Expert tested and reviewed

      June 2, 2025

      One of my favorite gaming PCs is 60% off right now

      June 2, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      `document.currentScript` is more useful than I thought.

      June 2, 2025
      Recent

      `document.currentScript` is more useful than I thought.

      June 2, 2025

      Adobe Sensei and GenAI in Practice for Enterprise CMS

      June 2, 2025

      Over The Air Updates for React Native Apps

      June 2, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

      June 2, 2025
      Recent

      You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

      June 2, 2025

      Microsoft says Copilot can use location to change Outlook’s UI on Android

      June 2, 2025

      TempoMail — Command Line Temporary Email in Linux

      June 2, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Linux»Using Emacs as Terminal Multiplexer on Windows

    Using Emacs as Terminal Multiplexer on Windows

    January 31, 2025

    Using Emacs as Terminal Multiplexer on Windows

    If you’re a developer or a power user, you probably understand the importance of having an efficient and organized workflow.

    Whenever I get to work with a Windows-based system, I really miss the terminal emulator along with the ability to quickly switch between different terminal sessions. Not to mention, sometimes I need to gather 2-3 command sessions in a single view. There are many scenarios where I need to run multiple commands simultaneously. 

    Sure, we have the command prompt, or Windows terminal to use, but it is not enough for a similar experience.

    💡
    Windows 11 Terminal does provide you the ability to create multiple panes within a tab. You can use the shortcut Alt + Shift + – and Alt + Shift + + to create horizontal and vertical panes, respectively.

    With Linux, I had access to terminal multiplexers like tmux and screen.

    But, wait, there is a solution on Windows 10 and Windows 11 that can work as a terminal multiplexer and a text editor – all in one!

    Enter Emacs 🤩

    Why Use Emacs as a Terminal Multiplexer?

    While I have already mentioned why we are looking at a solution like Emacs, let me give highlight some more reasons you want to try this out (apart from the fact that it is open source and super awesome):

    1. Less is More

    Emacs is an all-in-one solution. It can work as a terminal, text editor, file manager, email client, calculator, a text-based web browser. All these features are packed in a 150 MB zipped file. Pretty crazy, right? You won’t know all this until you give it a try!

    2. Powerful Customization

    Emacs is famously customizable. You can tweak almost everything: keybindings, window layouts, themes, and even the behavior of your terminal sessions. This allows you to tailor the environment to your exact needs, providing a highly efficient experience.

    3. Integrated Shell Support

    Emacs allows you to open a shell session inside a buffer, and with its support for eshell, shell, you can run shell commands, manipulate files, and perform operations right alongside your text editing. 

    4. Flexibility with Windows

    Emacs is great at handling multiple buffers in a single window. You can split your window into multiple panes (or “windows,” as Emacs calls them), just like with tmux, enabling you to work on different tasks simultaneously without feeling cluttered.

    Using Emacs as Terminal Multiplexer

    Now that you know the benefits, to help you use it, let me give you a walkthrough on using Emacs as a terminal multiplexer.

    Step 1: Install Winget

    Winget comes as a part of the App Installer package. So, you need to first install the App Installer from Microsoft Store:

    Using Emacs as Terminal Multiplexer on Windows

    Step 2: Install Emacs on Windows 11 or Windows 10

    Winget makes it super simple to install Emacs. Simply run this command:

    winget install emacs

    Step 3: Open Emacs 

    Open Emacs from the Windows 11 Start menu.

    Step 4: Run shell

    Within emacs, press Alt + X, and type shell and hit Enter to get the interactive user interface.

    Using Emacs as Terminal Multiplexer on Windows
    💡
    In Emacs terminology, the Alt key is often referred to as M, and Ctrl is referred to as C. I have used C, and M to represent the same throughout the article.

    Now, with Emacs, you will realize the following benefits:

    • A nice auto-completion system
    • Ability to edit any previous command at a point
    • Quickly jump between different command sessions.
    Using Emacs as Terminal Multiplexer on Windows
    Autocomplete selection

    To see autocomplete in shell buffer, simply type in ‘a’ and then hit Tab, you’ll be presented with a list of options. You can select one of the options with a mouse click as shown above.

    Using Emacs as Terminal Multiplexer on Windows
    📋
    If you see terms like C-s, or C-u, or Alt-x, read it as Ctrl + s/u or Alt + x.

    To search for previous commands and outputs, hit C-s <your-term>. This is what I referred to when I mentioned consistent keybindings for all of your workflow. Within your Emacs environment, C-s will do a forward search everywhere unless you modify it.

    Using Emacs as Terminal Multiplexer on Windows

    To edit your previous commands, move your cursor to the previous command or do a quick search, make the necessary adjustments, and hit enter. 

    If you want to open another shell, press C-u keys, and then Alt-x to open another shell.

    By default, this buffer will be named “Shell 2”. And you can navigate between these different shells by C-x b and Tab. Use the mouse for selection. We’ll make it more efficient in the next section.

    Terminal Multiplexing

    Now here comes the magic. If you want to create two vertical layouts, simply use the keybinding C-x + 3. Then, if you want two horizontal layouts, use the shortcut C-x + 2.

    Using Emacs as Terminal Multiplexer on Windows

    For navigation to other panes, you can use your mouse or use Emacs shortcut
    C-x + o

    Auto-completion and multi-window layouts

    Another quick tip. With just one line configuration, Emacs can provide useful completions based on your action with ido-mode. 

    Save the line below in a new .emacs file usually located at your user C:/Users/YourUser/AppData/Roaming. After saving, you don’t need to restart Emacs.

    (ido-mode 1)

    Let’s enable winner-mode as well to undo and redo multi-window layouts. Add the line below to the config file like you did above:

    (winner-mode 1)

    Finally, save this two-line configuration

    Simply, do Alt + x and then type eval-buffer.

    Using Emacs as Terminal Multiplexer on Windows

    Now with ido-mode, you can simply switch to shell 2 buffer using C-x b 2.

    Using Emacs as Terminal Multiplexer on Windows

    With winner-mode in place, if you want to get a full preview of a single pane, press C-x + 1, and then to go back to the previous layout, run

    winner-undo

    You can save yourself time by mapping a keybinding for winner-undo and winner-redo commands.

    Keybindings Cheatsheet

    Here’s a list of all keybindings we used throughout this tutorial.

    Keybinding Shortcut What it does
    C-x C-s Saves the file
    Alt-x Opens mini prompt to enter interactive commands
    C-s Forward Search
    C-u Alt-x Run another instance of the command
    C-x b Navigates between the buffer
    C-x 2 Splits into two horizontal layouts
    C-x 3 Splits into two vertical layouts
    C-x o Move to another pane
    C-x 1 Get a full view of a particular pane

    💬Do you love having multiple terminal sessions as well? Let me know your thoughts in the comments!

    Author Info

    Using Emacs as Terminal Multiplexer on Windows

    Bhuwan Mishra is a Fullstack developer, with Python and Go as his tools of choice. He takes pride in building and securing web applications, APIs, and CI/CD pipelines, as well as tuning servers for optimal performance. He also has passion for working with Kubernetes.

    Source: Read More

    Hostinger
    Facebook Twitter Reddit Email Copy Link
    Previous ArticleThe latest PlayStation game to arrive on PC has launched to mixed reviews amid reports of significant graphical issues
    Next Article Kleopatra – KDE tool for managing X.509 and OpenPGP certificates

    Related Posts

    Operating Systems

    You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

    June 2, 2025
    Operating Systems

    Microsoft says Copilot can use location to change Outlook’s UI on Android

    June 2, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    CVE-2025-28104 – LaskBlog Information Disclosure

    Common Vulnerabilities and Exposures (CVEs)

    CodeSOD: Layered Like Spaghetti

    Development

    State-of-the-art video and image generation with Veo 2 and Imagen 3

    Artificial Intelligence

    CVE-2025-4060 – PHPGurukul Notice Board System SQL Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    Machine Learning

    HERE Technologies boosts developer productivity with new generative AI-powered coding assistant

    May 19, 2025

    This blog post is co-written with Jonas Neuman from HERE Technologies.  HERE Technologies, a 40-year…

    Shocking! Legend Srinidhi Ranganathan Applies to 50,000+ Jobs Daily using AI Bots! Here’s one more secret!

    June 4, 2024

    Callbacks on Web Components?

    August 22, 2024

    CVE-2024-49196 – Samsung Mobile Processor Exynos GPU Type Confusion Denial of Service

    May 27, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.