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

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

      June 4, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 4, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 4, 2025

      Smashing Animations Part 4: Optimising SVGs

      June 4, 2025

      I test AI tools for a living. Here are 3 image generators I actually use and how

      June 4, 2025

      The world’s smallest 65W USB-C charger is my latest travel essential

      June 4, 2025

      This Spotlight alternative for Mac is my secret weapon for AI-powered search

      June 4, 2025

      Tech prophet Mary Meeker just dropped a massive report on AI trends – here’s your TL;DR

      June 4, 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

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025
      Recent

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025

      Simplify Negative Relation Queries with Laravel’s whereDoesntHaveRelation Methods

      June 4, 2025

      Cast Model Properties to a Uri Instance in 12.17

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

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025
      Recent

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025

      Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

      June 4, 2025

      Rilasciata Oracle Linux 9.6: Scopri le Novità e i Miglioramenti nella Sicurezza e nelle Prestazioni

      June 4, 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

    Linux

    My Favorite Obsidian Plugins and Their Hidden Settings

    June 4, 2025
    Linux

    Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

    June 4, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Exploring the Influence of AI-Based Recommenders on Human Behavior: Methodologies, Outcomes, and Future Research Directions

    Development

    CVE-2025-3435 – Mang Board WP Stored Cross-Site Scripting Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Lazarus Hits 6 South Korean Firms via Cross EX, Innorix Zero-Day and ThreatNeedle Malware

    Development

    AI achieves silver-medal standard solving International Mathematical Olympiad problems

    Artificial Intelligence

    Highlights

    CVE-2025-46223 – Apache HTTP Server Information Disclosure

    April 23, 2025

    CVE ID : CVE-2025-46223

    Published : April 23, 2025, 3:15 a.m. | 3 hours, 40 minutes ago

    Description : Rejected reason: Not used

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Don’t break your back while you deep clean. Use these gadgets instead

    June 1, 2024

    Fluid Everything Else

    November 5, 2024

    Oracle VirtualBox Vulnerability Exposes Systems to Privilege Escalation Attacks

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

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