The default Emacs modeline only shows the current line number and its percentage in relation to the total line numbers. How do I make it show the line total as well?
How do I display the total number of lines in the Emacs modeline
4.7k views Asked by dkiyatkin At
1
There are 1 answers
Related Questions in EMACS
- How can I make 'emacsclient' open in native fullscreen every time I launch it from the terminal in macOS?
- emacsclient does not connect inside ubuntu container
- Emacs use .emacs by default instead .emacs.d/init.el
- Setting up Macaulay 2 on emacs
- org-mime add caption to exported images
- Use the same export attribute for all src-blocks
- Tags Development Tools
- Emacs 29.2 unable to find theme file
- How to automatically allow the execution of code action from HLS in emacs?
- Org-babel remote inline images with TRAMP not exporting in org export
- find and replace regex like that can deal with nested brackets
- Inheriting from variadic types messes up template member function indentation in Emacs
- Invoking org-store-link interactively, errors on calling org-man-store-link
- Disable session save in doom emacs
- How do you connect to a remote emacs server using Microsoft dev tunnels
Related Questions in LINES-OF-CODE
- Calculating the average of a specific row with loc, loc is not finding the row value
- Check maximum date and keep that row only
- Simplify columns using python pandas
- Problems with loc function in python, doesn't find a label taht is in my dataframe
- how to use np.where with .loc
- In python, drop a time range period
- How to replace NaN values with the correspondent month and hour mean value
- traverse a list of dictionaries and store them into a separate column
- AND condition and strict equality in loc
- Create a column ranking order of records by date
- Pandas: set column value based on other columns: Filtering Data and changing column values
- Search for LOV columns in dataframe and replace with codes using other dataframe
- Confirm if LOV columns in a pandas dataframe complies with another mapping dataframe
- Python: Formating totals to showcase different formulas per row rather than just the total sums
- How can I count words or tokens in my code?
Related Questions in MODELINE
- How to colorize some text in the mode-line differently
- Emacs insert true tabs by default
- Is it possible to have a complicated Emacs command as modeline?
- how to load a .vim file on a mode line
- How can I hide all major / minor modes from the mode line without a package?
- How do I turn on vim syntax highlighting via modeline?
- Vim: disable autocmd BufRead (modeline)
- How to Call a Function in Emacs Mode Line Format
- Emacs Mode Line Click Change Buffer
- Vim or Emacs-like modeline magic support for VSCode
- Activate VIM folding markers via modeline
- Mode line will not redraw properly
- Vim bash syntax highlighting with modeline
- emacs: Which plugin is this?
- Emacs: add list of all opened files to mode-line?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
This can be a little tricky, because if you update the line count all the time and have a large buffer it can make Emacs somewhat unresponsive since it's counting lines over and over. I wrote this to take a lazy approach to counting: it only does it when the file is first read in or after you save/revert it. If the buffer is modified it doesn't lie about the line count, it simply isn't shown until you save again.
You might want to adjust
mode-line-formatto suit your taste of course, the above is what I personally prefer.